Relative Content

Tag Archive for kotlinandroid-jetpack-composeandroid-constraintlayout

Compose : Constraint Layout items overlapping : Smart wrap text does not work when two opposing items intertwine

I want to make a list item which contains two texts , one anchored to the start of parent and one to the end of parent,I want the space to be dynamically handled each time and if too long it should wrap text and break line, my problem is that i’m using this item everywhere, sometimes Text1 takes up more space than Text2 and vice versa, this makes using Row with weight not useful, I tried using constraint layout, with top, bottom and start/end constraints, but this makes the texts overlap when too long.
item using Row and weight