Here I have only 1 element in ListView, and I show two different TextViewsdifferent colors at the end of the element ListView.
But the problem is that I want to show a maximum of 3 lines each TextView, but this does not give me a good result if the length TextViewis small. But it works well if the text is large.
When I add android:maxLines="3"and the text is small, it destroys my layout, for example
And when I add android:minLines="2"and the text is large, it shows the full text, for example
Give me a way to overcome this problem. Each mine TextViewlooks like this:
<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" />