I have two TextViews next to each other inside ConstraintLayout. Each of them has two words. The words inside of them can be changed by the current locale.
Currently each of them takes equally space on the width by using android:layout_weight="1
" and android:layout_width="0dp"
If the text in any of them is too long to fit one line, I want both of them to expand to two lines. I need the text itself to be expanded, not the TextView - that can be done only if the text has at least two words.
Is there a way to do that?