Since few times the autocomplete box from Eclipse propose android:paddingStart android:paddingStop when I’m writing xml layout files.
I don’t really understand what those attributes are supposed to do.
The eclipse/javadoc documentation is not really helpful :
Sets the padding, in pixels, of the start edge; see padding. and the online documentation does not make any reference to those attributes : http://developer.android.com/reference/android/view/View.html
Could you explain me ?
After reading into the Android source code (View.java) it seems paddingStart and paddingEnd are helpful to take care of letter direction (left to right of right to left) defined by the user.
Thus, paddingStart is interpreted as paddingLeft in LTR (left-to-right) languages and paddingRight in RTL (right-to-left) languages.
Source code from View.java (android-4.0.1) :