如何创建最少4个问题单排多个单选按钮和肯定的形式回答的或没有最后它要计算多少是多少没有如何在最少4个问题中创建单排多个单选按钮?
,如:
- 你去办公室是/否
- 你乘公共汽车/驾驶室去
- 您是否有兴趣参加研讨会是/否
最后,结果H如使用按钮
如何创建最少4个问题单排多个单选按钮和肯定的形式回答的或没有最后它要计算多少是多少没有如何在最少4个问题中创建单排多个单选按钮?
,如:
最后,结果H如使用按钮
使用算如
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Are you going to school "/>
<RadioGroup
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<RadioButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Yes"/>
<RadioButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="No"/>
</RadioGroup>
</LinearLayout>
这使得你一个question.Make其他三个问题,像这样和单选按钮在一个array.And最后,计算和显示的存储状态。
把代码你正在工作的先生 – diegoveloper
是新的android我试过,但 – Raksh