Reputation: 278
it seems that android 4 provides "android:layoutDirection" for linearLayout and "android:textDirection" for textView , but when i choose them , i get a compilation error that it doesn't recognize them like that:
error: No resource identifier found for attribute 'layoutDirection' in package 'android'
i also can't find out more information on the internet about those attributes. what do they mean, and how come i can't use them?
Upvotes: 10
Views: 10789
Reputation: 10482
May be help u.
Note: To enable right-to-left layout features for your app, you must set supportsRtl to "true" and set targetSdkVersion to 17 or higher.
http://developer.android.com/guide/topics/resources/providing-resources.html#table2
Upvotes: 9