android - How set my ACTION BAR to support right to left -


this question has answer here:

i new on android , want write application support rtl languages. wrote

android:supportsrtl="true" 

on application part of manifest file , call forcerighttoleft on oncreate method of android. method have following body:

@targetapi(build.version_codes.jelly_bean_mr1) private void forcertlifsupported() {     if (build.version.sdk_int >= build.version_codes.jelly_bean_mr1) {         getwindow().getdecorview().setlayoutdirection(                 view.layout_direction_rtl);     } } 

but understand on sdk api 16(android 4.1) , version before didn't supported , action bar show left right. search couldn't find solution. please don't minus code let me know , delete if not true question.

try bidi class

see answer also.


Comments

Popular posts from this blog

jQuery Mobile app not scrolling in Firefox -

c++ - How to add Crypto++ library to Qt project -

how to receive file in java(servlet/jsp) -