Khalid ElSayed
Khalid ElSayed

Reputation: 278

android - how can i use the "android:layoutDirection"?

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

Answers (2)

boiledwater
boiledwater

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

friedflow
friedflow

Reputation: 106

It works if you change your project properties to API Level 17.

Upvotes: 9

Related Questions