How can I set max width of horizontal LinearLayout
? So if the contents is short (say, some text), the layout shrinks and if the contents is longer - it will not expand more than some max width value.
I prefer doing it at the XML level.
Pls let me know if my question is not clear enough.
Thanks in advance