0

I have an activity with four checkboxes in it in a typical quiz format. I am trying to allow user to to edit the question(check box text) and check the check boxes he/she wishes to. Any suggestions on how to do this?

one of my four checkboxes are currently like this

<CheckBox
    android:id="@+id/checkBox1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:editable="true"
    android:text="type answer 1 here. Select check box if this is the right answer" />
4

1 回答 1

1

我不知道我的问题是否正确。您想让用户在运行时更改复选框的标签,对吗?

对于这种情况,我建议将输入方法(例如 TextViews)添加到“编辑”表单并通过 checkbox.setText() 设置相应的复选框文本。

我希望这是一个对你有帮助的答案。

于 2013-05-05T15:05:48.737 回答