If I want a different text size for different scre...
# compose
a
If I want a different text size for different screen sizes, I'm going to be using the styles XML system, right? Or is there a jetpack compose way?
I ended up doing this in my
Theme.xml
Copy code
val densityDpi = LocalConfiguration.current.densityDpi
val typography = if(densityDpi < DisplayMetrics.DENSITY_XHIGH) {
  TypographySmall
} else {
  TypographyNormal
}