Open DHosseiny opened 4 years ago
I tested toolbar's titleMarginStart
attr and it has the same bug(start converts to left in Rtl languages).
@matpag I fixed my own issue but I am looking for a fix on this.
If you are referring to Toolbar icons, I don't think there is something to fix here. Adding ImageViews directly inside Toolbar is not supported and not suggested anywhere I can find online, pretty every tutorial suggest you to add icons via menu inflation.
If you are talking about titleMarginStart
being bugged in RTL, I did not verified it yet.
Yes, titleMarginStart
being bugged in RTL.(I think if this get fixed the main problem will be fixed too)
Description: The problem is when I add a view for Exmaple an ImageButton to toolbar that is direct child of CollapsingToolbarLayout that ImageButton's
layout_gravity
is not true in Rtl languages. When I setlayout_gravity
tostart
for exmaple, this ImageButton's is sticked to left of toolbar in English language(as a Ltr language) but in persian language(as a Rtl language) it is sticked to left of toolbar again(as this meansend
notstart
).Expected behavior:
layout_gravity="start"
of direct child of toolbar in CollapsingToolbarLayout should stick to right of toolbar and vice versa.Source code:
Android API version: Any but tested in 29
Material Library version: 1.2.1 latest stable right now
Device: Nexus 4 emulator