Read More

Just few steps to make your APP RTL supportable

Android provides a feature to make our APP bidirectional(LTR & RTL). This feature was introduced in android 4.1 (Jelly Bean) for TextView and EditText elements, allowing apps to display and edit text in both left-to-right (LTR) and right-to-left (RTL).

There was full support for RTL feature in android 4.2 version. It makes the exact mirror image of our existing layout.

Our APP will continue to appear as we have set it in default direction. But, with a few simple changes, APP will be automatically mirrored when the user switches the system language to a right-to-left script (such as Arabic, Hebrew, or Persian).

 

Android 4.2 includes the following APIs to help manage View components:

 

Make these changes to support bidirectional feature by android:

  1. add- android:supportsRtl="true" to the <application>element in manifest file.
  2.  Change all of app’s “left/right” layout properties to new “start/end” equivalents.

 

Note: If you are not a developer and still want to see the miracle then follow the steps:

  1. In your android phone, tap on “Settings” icon.
  2. Scroll down the list. You will get “Developer options”, if not then no need to worry follow: Settings > About device > Build number

    Once you’ve found the Build number section of the settings, tap on the section 7 times. Now there will be “developer options” before “about phone”

  3.  Now tap on developer options and search for “Force RTL layout direction”.
  4. Tap on it to enable RTL feature.

Have fun!

. . .

Comments (2)

Add Your Comment

  • shrutika
    Hi ,
    Is it possible to user manually change language in the app and in the same page view changes to RTL . Can you tell me how to do it .
  • Andre D'Parker
    Thanks ,the great aticle.
  • css.php
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just recieved your project brief and our expert will contact you shortly.
    Send Again
    Close