I am trying to get two android buttons to appear inbetween two textviews. But the first textview seems to be showing while the other textview and buttons are not appearing. I want it to look like:
“Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah BUTTON blah blah blah blah blah blahblah blah blah blah blah blah BUTTON”
What I am seeing is:
“Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah “
Here is the code:
<LinearLayout android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:text="Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah "
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<Button
android:text="BUTTON"
android:background="@null"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:text=" blah blah blah blah blah blahblah blah blah blah blah blah "
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<Button
android:text="BUTTON"
android:background="@null"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
Any help would be greatly appreciated!
try below code and remember that controls having weight property set as 1 will be equally adjusted accroding to their width if width property set to Fill_parent