Android CheckBox text not displaying

后端 未结 4 1407
悲哀的现实
悲哀的现实 2021-01-11 20:50

I\'m trying to dynamically create some CheckBoxes in one of my Android activities, but it\'s not rendering the text.

Here is my simplified code...

  1. L

4条回答
  •  梦毁少年i
    2021-01-11 21:34

    I just did the same and found that I was using setText("") in the initialisation code rather than setChecked(false). Dur!

提交回复
热议问题