Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
555 views
in Technique[技术] by (71.8m points)

localization - RTL Languages support in android and resource qualifiers

I read this sentence " Android 2.3 added support for right-to-left (RTL) languages" and now I want to add RTL support to my app. But I do not know what is qualifiers to add to my layouts.

About res/values/strings.xml , I can named like this res/values-ar/strings.xml

I want to have different layout for RLT languages. I do not want to have just different strings , I also want different layout. What the layout folder name should look like ?

At this moment for the left to right languages it is named res/lauyots/main.xml but I do not know how to name it for RTL languages

Is this kind qualifier is present at all ?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You can find -ldrtl and -ldltr qualifiers in Providing resources

res/layout-ldltr/ (Left to Right, default value)
res/layout-ldrtl/ (Right to Left)

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...