3535 * {@link android.widget.ListView#setChoiceMode(int) setChoiceMode} has been set to
3636 * something other than {@link android.widget.ListView#CHOICE_MODE_NONE CHOICE_MODE_NONE}.
3737 *
38+ * @attr ref android.R.styleable#CheckedTextView_checked
39+ * @attr ref android.R.styleable#CheckedTextView_checkMark
3840 */
3941public class CheckedTextView extends TextView implements Checkable {
4042 private boolean mChecked ;
@@ -100,6 +102,11 @@ public void setChecked(boolean checked) {
100102 * when {@link #isChecked()} is true.
101103 *
102104 * @param resid The Drawable to use for the checkmark.
105+ *
106+ * @see #setCheckMarkDrawable(Drawable)
107+ * @see #getCheckMarkDrawable()
108+ *
109+ * @attr ref android.R.styleable#CheckedTextView_checkMark
103110 */
104111 public void setCheckMarkDrawable (int resid ) {
105112 if (resid != 0 && resid == mCheckMarkResource ) {
@@ -119,6 +126,11 @@ public void setCheckMarkDrawable(int resid) {
119126 * Set the checkmark to a given Drawable. This will be drawn when {@link #isChecked()} is true.
120127 *
121128 * @param d The Drawable to use for the checkmark.
129+ *
130+ * @see #setCheckMarkDrawable(int)
131+ * @see #getCheckMarkDrawable()
132+ *
133+ * @attr ref android.R.styleable#CheckedTextView_checkMark
122134 */
123135 public void setCheckMarkDrawable (Drawable d ) {
124136 if (mCheckMarkDrawable != null ) {
@@ -142,6 +154,20 @@ public void setCheckMarkDrawable(Drawable d) {
142154 resolvePadding ();
143155 }
144156
157+ /**
158+ * Gets the checkmark drawable
159+ *
160+ * @return The drawable use to represent the checkmark, if any.
161+ *
162+ * @see #setCheckMarkDrawable(Drawable)
163+ * @see #setCheckMarkDrawable(int)
164+ *
165+ * @attr ref android.R.styleable#CheckedTextView_checkMark
166+ */
167+ public Drawable getCheckMarkDrawable () {
168+ return mCheckMarkDrawable ;
169+ }
170+
145171 @ Override
146172 public void onPaddingChanged (int layoutDirection ) {
147173 int newPadding = (mCheckMarkDrawable != null ) ?
0 commit comments