I have a horizontal LinearLayout containing 4 TextViews. Sometimes the text in one of these textviews is long, and the last textview does not fit correctly in the layout.
Of course, I can set one textview but this isn’t optimal because the text is set from different places and has different styles.
Any idea how to solve this?
Thanks a lot.
I have a horizontal LinearLayout containing 4 TextViews. Sometimes the text in one of
Share
You can use weights to distribute the Views inside the LinearLayout with 25% each.
For example (untested, may contain typos):