It is right. The code does use it, but the compiler does not allow it. The code has it in several places, and here, where it is initialized:
public CheckedTextView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { .... mCheckMarkGravity = a.getInt(R.styleable.CheckedTextView_checkMarkGravity, Gravity.END);
And an example of using Android layout XML files in XML is in "preference_material.xml":
<CheckedTextView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/text1" android:layout_width="match_parent" android:layout_height="wrap_content" android:minHeight="?android:attr/listPreferredItemHeightSmall" android:textAppearance="?android:attr/textAppearanceMedium" android:textColor="?android:attr/textColorAlertDialogListItem" android:gravity="center_vertical" android:paddingStart="?attr/dialogPreferredPadding" android:paddingEnd="?attr/dialogPreferredPadding" android:checkMark="?android:attr/listChoiceIndicatorSingle" android:checkMarkGravity="start" android:ellipsize="marquee" />
I wrote about this question here , hoping that Google will release it for everyone to be used.
android developer
source share