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
TextViewis too big, it is ellipsized at the end like this:[firstTextViewIsTooBig...|secondTextView]If the first
TextViewis not big, the layout should look like this:[firstTextViewIs|secondTextView---------]
Important:
- I don't know
LinearLayout's width, so I can't set fixedmaxWidthon the firstTextView. - Second
TextViewshould be always aligned to the left of the first, not to the right of the layout.