Android CheckedTextView - dynamically sets checkMark

Given this property of XML CheckMark CheckedTextView:

android:checkMark="?android:attr/listChoiceIndicatorMultiple"

How can you set the checkMark property dynamically (i.e. from code)? Does Android have any docs about this?

Usage: Android 1.5

Note: I am creating a regular jar library that has no access to android XML resource files or files, so everything needs to be created programmatically.

+3
source share
1 answer

From an API document CheckedTextView, does this sound like two setCheckMarkDrawablemethods would do the job?

You just need to convey StateListDrawable.

+3
source

Source: https://habr.com/ru/post/1728076/


All Articles