Is it a good idea to create this type of UI in Con...
# compose
s
Is it a good idea to create this type of UI in Constrainlayout or a custom Layout, and will there be any performance benefit if I pick the latter?
🇨🇿 6
n
I would say yes… 🤷‍♂️ Once it’s a small component, it shouldn’t cause big performance issues…
j
I would use a row of three columns
n
@Javier how would you do this overlap with date/time?
👍 1
j
Offset modifier maybe, I haven't tried TBH
n
I don’t think it’s a good solution. ConstraintLayout provide a elegant solution for these cases…
j
CL have a lot of cons: • Without an editor and a GUI it is not readable • It is not multiplatform
j
Box { Row { Column {}; Column {} }; Column {} }
🥲 1
j
Yep, and probably extracting the columns
n
1. You have a Compose Preview for that 2. I think @Shakil Karim can answer if this is a real problem. Because he didn’t mention anything about multi platform limitation…
j
So
Copy code
Row {
  Team(...)
  ScoreAndDate(...)
  Team(...)
}
s
@nglauber i don't have requirement for muti platform, i'm currently using this as list item and using CL but i feel performance of scrolling is not that smooth as compare to RV. I'm thinking to implement using custom layout.
I found CL implementation much cleaner as compare to Row and Column
👍 2
n
I couldn’t agree more 🤷‍♂️