https://kotlinlang.org logo
#compose
Title
# compose
j

Jeremy

09/22/2020, 2:36 AM
Q: How can I make 2 columns. The first column a vertical line, the second column a text input. The first column height should be aligned with first.
Want to display something like : | Content Line 1 | Content Line 2 | Content Line 3
z

Zach Klippenstein (he/him) [MOD]

09/22/2020, 4:56 AM
I can't read the message you posted with that file, it's not showing up correctly on mobile. But constraint layout seems like overkill for this, this looks like basically the example given for how to use intrinsics in the official docs. https://developer.android.com/codelabs/jetpack-compose-layouts#9
💯 1
t

Timo Drick

09/22/2020, 10:38 AM
My approach would be to use Row and than just make sure that the vertical line has the same width on every row.
j

Jeremy

09/22/2020, 1:33 PM
Intrinsics worked, Thanks!