Android warning: Supports Rtl in Androidmanifest

I am developing an android application using android: minSdkVersion = "12" and android: targetSdkVersion = "21". In my manifest file I saw a warning: " The project is referencing RTL attributes, but does not explicitly enable or disable RTL support with android: supports Rtl in manifest ." What does it really mean. I just went through the link http://developer.android.com/guide/topics/manifest/application-element.html.But without getting a big idea of ​​the problem. this is the code i used in xml for one view.

<EditText
        android:id="@+id/terminal_id_edit_text"
        android:layout_width="fill_parent"
        android:layout_height="@dimen/edit_text_height"
        android:layout_marginEnd="@dimen/edit_text_right_margin"
        android:layout_marginLeft="@dimen/edit_text_left_margin"
        android:layout_marginRight="@dimen/edit_text_right_margin"
        android:layout_marginStart="@dimen/edit_text_left_margin"
        android:background="@drawable/editetxt_bg"
        android:inputType="text"
        android:hint="@string/terminal_id_text" 
        android:maxLength="8"
        android:nextFocusDown="@+id/client_id_edit_text"
        android:paddingLeft="@dimen/edit_text_padding"
        android:paddingRight="@dimen/edit_text_padding"
        android:singleLine="true"
        android:textColor="@color/color_white"
        android:textCursorDrawable="@null"
        android:textSize="@dimen/normal_text_size" />`

      

+3


source to share


1 answer


Android: supportsRtl Declares whether your application wishes to support Right-to-left (RTL) layouts. If set to true and targetSdkVersion is set to 17 or higher, various RTL APIs will be activated and used by the system so that your application can render RTL layouts. If set to false, or if targetSdkVersion is set to 16 or below, RTL APIs will be ignored or have no effect and your app will behave the same regardless of the layout direction associated with the user's Locale selection (your layouts will always left - to the right). The default value for this attribute is false. This attribute was added in API level 17.



for more: android: supportsRtl

+3


source







All Articles