Mike Speed
11/15/2021, 11:07 AMaccompanist.pager.HorizontalPager
and for some reason my textviews are always square when the string is longer than one line… any ideas why?
HorizontalPager(
count = 2,
state = pagerState,
verticalAlignment = <http://Alignment.Top|Alignment.Top>
) { i ->
when (i) {
0 -> Text(
"A string A string A string A string A string A string A string",
modifier = Modifier.wrapContentHeight(), //makes no difference
)
1 -> SomethingElse()
}
}
I also tried wrapping in a Row with wrapContentHeight but it didn’t make a difference.Mike Speed
11/15/2021, 12:52 PMlineHeight = 16.sp,
on the Text
composable fixes it.