@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
viewRoot = inflater.in
内我想提出一个测验应用程序,它也有一些问题: 当用户点击NEXT QUESTION,另一个问题将被显示。 我做了当前代码: public void onRadioButtonClicked(View view) {
// Is the button now checked?
boolean checked = ((RadioButton) view).isChecked();
这是应用视图: ,这里是我的活动代码: public class Quiz extends AppCompatActivity {
public static int point;
public static int i = 0;
RadioGroup radioGroup;
public static int totalPoint =0;
int
我为Radio Button创建了一个自定义视图像这样。 如何从自定义视图中获取RadioButton的值,并且一次只想选择一个单选按钮。 public void getData(){
cappingLayout.removeAllViews();
for (Capping capping: productList.getCappingList()){
if (ge