Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
510 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 Reply

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)

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

56.8k users

...