android: CheckedTextView cannot be checked?

后端 未结 7 1119
遇见更好的自我
遇见更好的自我 2020-12-08 06:41

Initially I wanted a checkmark where the text is placed on the left of the checkmark. After searching on this site I found out the best workaround is android:CheckedTextView

7条回答
  •  清歌不尽
    2020-12-08 06:59

    This layout looks and behaves the same way as CheckedTextView:

    
    
        
    
        
    
    
    

    Only extra legwork is to set an OnClickListener on the root view and call checkBox.toggle() on the CheckBox.

提交回复
热议问题