Thursday, 12 November 2020

Arrange two multiline TextViews width wrap_content width on both sides of the parent view

Help me please achieve following arrangement of two TextViews:

enter image description here

  1. On the left is a simple TextView with title, and on the right is another TextView with a Drawable on the left side of it (it is important because of it I can’t use match_parent). Both TextViews should be wrap_content and pressed to their side.
  2. If one of the TextViews is too long, it should rest against another TextView and wrap its own text.
  3. If both TextViews are long, then they should take up the same space. None of them should be pushed outside the parent view.


from Arrange two multiline TextViews width wrap_content width on both sides of the parent view

No comments:

Post a Comment