Thursday, June 30, 2011

[android-developers] How to achieve TextView animation as seen in the Market app?


In the Market app, when an application is selected, the TextView
containing the description of the app. only show the first 3-4 lines
of the full text. Clicking the 'more' button animates this view, so
the full text is visible. And this TextView is in a ListView (I
guess). How can I achieve this in my application, what property should
be animated in this case on the TextView?

It's quite easy to achieve this without animation, by modifying the
TextView's maxLines property. But the animation in the Market is too
smooth to be done simply by animating this property with the new
animator framework. Any ideas?


You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment