I have two TextView side by side in a LinearLayout horizontally
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:id="@+id/Tx1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Message" />
<TextView
android:id="@+id/Tx2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Time" />
</LinearLayout>
i want when Tx1 text length is fill the line Tx2 go to next line
when now we add to length of the Tx1 , Tx2 is going outside of the view.
how i can fix it?
You most likely will have to do something programmatically with the orientation using a
TextWatcher: