How to get text direction in Android and change layout dynamically according to the direction?
I'm doing some research about feasibility of changing UI dynamically based on direction of a text. Although Google is supporting RTL languages (ref: Native RTL support in Android 4.2 ) but it doesn't cover a situation that application has mix of LTR and RTL contents. Google's solution is right if we have multilingual app and it has different sources of static data (such as menu items) in different languages. However, I didn't find any other document regard how to change layout dynamically based on direction of text content. Following image shows current design of my test app. List comes from