Custom a CheckedTextView in android

二次信任 提交于 2019-12-04 18:54:05

http://developer.android.com/reference/android/widget/CheckedTextView.html#setCheckMarkDrawable%28int%29

Example:

myCheckedTextView.setCheckMarkDrawable(R.drawable.icon);

This method allows you to set the check mark image dynamically. You should call it when setting up the CheckedTextView. The method in the developer reference just needs the id of the image resource you want to use.

There is also a version that takes a Drawable as a parameter instead of an id.

You need to create a custom list_item layout.

For full explanation go through the below link...

http://amitandroid.blogspot.in/2013/09/android-custom-multiple-choice.html

Hope this will help you.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!