I have 2 TextView
's in a horizontal LinearLayout
. The LinearLayout
fills the screen horizontally. How can I achieve the following behaviour:
If the first
TextView
is too big, it is ellipsized at the end like this:[firstTextViewIsTooBig...|secondTextView]
If the first
TextView
is not big, the layout should look like this:[firstTextViewIs|secondTextView---------]
Important:
- I don't know
LinearLayout
's width, so I can't set fixedmaxWidth
on the firstTextView
. - Second
TextView
should be always aligned to the left of the first, not to the right of the layout.