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

itnoles

02/22/2021, 3:27 PM
I am trying to put two text on the right side. Here is a code for it Click Here
k

krzysztof

02/22/2021, 3:33 PM
Maybe try to add TextStyle to your Text composable, to align to right?
i

itnoles

02/22/2021, 5:20 PM
I tried to do
Copy code
Text(it.attributes.awayScore, textAlign = TextAlign.End)
No Change
k

krzysztof

02/22/2021, 5:21 PM
try applying
fillMaxWidth
so that Text and Column can stretch
i

itnoles

02/22/2021, 5:23 PM
No Change to add modifier.fillMaxWidth on the Column
k

krzysztof

02/22/2021, 5:29 PM
And on the Text as well?
Copy code
Column(Modifier.fillMaxWidth()){
 Text(Modifier.fillMaxWidth())
}
i

itnoles

02/22/2021, 5:31 PM
No change
Very odd
@krzysztof Some how, I managed got it to work in different way. Modifier.weight(1f)
k

krzysztof

02/22/2021, 5:46 PM
isn’t weight affecting height as well?
i

itnoles

02/22/2021, 5:47 PM
if you do in first Text, it wouldn't affect height