I have the following layout XML. Not sure why the third TextView
is not visible in the layout at all. Can someone point out why?
Relevant part of layout XML -
<LinearLayout
android:id="@+id/layout1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_toLeftOf="@+id/layout0"
android:layout_toStartOf="@+id/layout0"
android:layout_toRightOf="@+id/imageMain1"
android:layout_toEndOf="@+id/imageMain1"
android:gravity="center_vertical"
android:orientation="vertical"
android:paddingBottom="6dp"
android:paddingTop="6dp">
<TextView
android:id="@+id/textView1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:maxLines="1"
android:paddingBottom="2dp"
android:text="@string/dummy_long"
android:textColor="?android:textColorPrimary"
android:textSize="16sp"/>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="8dp"
android:layout_marginEnd="8dp"
android:maxLines="1"
android:text="@string/dummy_paragraph"
android:textColor="?android:attr/textColorTertiary"
android:textSize="14sp"/>
<TextView
android:id="@+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxLines="1"
android:text="@string/dummy"
android:textColor="?android:attr/textColorTertiary"
android:textSize="14sp"/>
</LinearLayout>
</LinearLayout>
Update
Ended up using this solution finally - Finally ended up using this - https://stackoverflow.com/a/17657154/1086930