0

I have a multi-line text view that can get quite large. When the user is actually editing it I want to expand as needed -- but then collapse it again down to a single line when it's no longer being edited.

Example: During the edit the textview may have many lines and look like this

Lots of really long notes on multiple liness

When focus is lost, I want to contract the view back to single line so that look like: Lots of really long...

Any suggestions?

David Hamilton
  • 339
  • 3
  • 19

2 Answers2

0

Tried wrapping it inside a ScrollView?

gsb
  • 5,520
  • 8
  • 49
  • 76
0

There have been several questions like this one, please check here:

TextView expand animation like in Android Market

Android: Expand/collapse animation

Android EditText won't take up remaining space

How to scale/resize text to fit a TextView?

Some of these links include the sliding animation for the textviews. I hope this helps!

Regards,

Community
  • 1
  • 1
Jared Burrows
  • 54,294
  • 25
  • 151
  • 185