I have three TextViews in a LinearLayout. I want the last TextView to appear in a new line (from the left most side) when Text goes out of bound of the screen width.
Below is the Xml Code
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/topContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/general_padding"
android:gravity="center_vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true">
<TextView
android:id="@+id/objectNameTv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Will Smith "
android:singleLine="true"
android:ellipsize="none"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="@color/orange_app_color" />
<TextView
android:id="@+id/postDetailTv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="is now following "
android:singleLine="true"
android:textAppearance="?android:attr/textAppearanceSmall" />
<TextView
android:id="@+id/subjectNameTv"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Kia Kool hain Hum"
android:singleLine="true"
android:maxLines="2"
android:scrollHorizontally="false"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="@color/orange_app_color" />
</LinearLayout> </RelativeLayout>
Thanks