简体   繁体   中英

android textview toggle single line to multi line on click

I'm trying to make a textview with two states. In the normal state, the textview should show a single line or height should be equal to that of a single line. In the toggled state, it's height should be the height of all lines or it should show all lines in the textview. The textview should toggle on click.

And I want to know if this will work in a ListAdapter.

Any help will be appreciated. Thanks.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM