material-components-android
material-components-android copied to clipboard
[CollapsingToolbarLayout] Use more accurate way to determine text direction
Fixes https://github.com/material-components/material-components-android/issues/2830
Before | After |
---|---|
![]() |
![]() |
Also see https://github.com/material-components/material-components-android/issues/2830#issuecomment-1197042582 and https://github.com/material-components/material-components-android/issues/2830#issuecomment-1197075367.
See explanation on https://github.com/material-components/material-components-android/issues/2830.
Additionally, we intentionally disabled the RtlTextDirectionHeuristics
for CollapsingToolbarLayout
in https://github.com/material-components/material-components-android/commit/841f2295921b4eed8bd16bb72b28d4ef7ca7cfa5 to fix several bugs related to non-RTL text being misaligned within an RTL device language.
OK, I've made some changes that are supposed to resolve the text alignment issues. Could you reopen the PR so I don't have to create a duplicate?
I actually can't reopen it either:
Could you please try again?
Done.
btw, blocked by https://github.com/material-components/material-components-android/pull/2906