Here I have only 1 item in ListView
and I'm showing two different TextViews
of different colors at the end of the ListView
item.
But the issue is I wanna show maximum 3 lines of each TextView
but it's not providing me a good result if length of TextView
is small. But it works well if text is large.
When I add android:maxLines="3"
and text is small, it destroys my layout like
And when I add android:minLines="2"
and text is large, it shows complete text like
Give me a way to overcome this problem. My each TextView
looks like:
<TextView
android:id="@+id/tv_previous_story"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="3dp"
android:maxLines="3"
android:textColor="@color/text_color"
android:textSize="@dimen/privacy_text_size" />