I have a ListView
, where the row layout has TextView
with two lines limit:
android:lines="2"
So, by default each ListView row displayed like:
this is line 1 of the row 1
this is line 2 of the row 1
---------------------------
this is line 1 of the row 2
this is line 2 of the row 2
I would like to show/hide all lines for the particular row, when user clicks on the row. Let's say user clicked on the row 1, I would like to show something like:
this is line 1 of the row 1
this is line 2 of the row 1
this is line 3 of the row 1
this is line 4 of the row 1
---------------------------
this is line 1 of the row 2
this is line 2 of the row 2
I was thinking about ExpandableListView
usage, but seems its purpose is different.
How can I implement what I am looking for?