CheckedTextView not checked

隐身守侯 提交于 2019-12-05 10:11:54
  1. Try to remove the style of your CheckedTextView, i think some values in your style affect the appearance.
  2. Remove the RelativeLayout in dataset_ctv_lesson.xml, and you do not need to change the check state on item clicked. ListView could maintain the check state by itself. Use ListView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE) to enable multi-select mode, and use ListView.getCheckedItemPositions() to get the checked row positions.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!