ascii
10/12/2023, 5:08 AM@Preview("Default") // locale defaults to ""
@Preview("RTL", locale = "ar") // Arabic for RTL
@Composable
fun Something() {
Text(stringResource(R.string.loading))
}
gives us that:locale = "en"
makes it go away, but I don't see why it should, when we can clearly see that strings are already correctly localized. Just that layout direction is picked up from "ar" (or perhaps the last @Preview annotation).ar
, but layout direction from ""
(default).Ian Lake
10/12/2023, 5:52 AMascii
10/12/2023, 6:23 AM