【发布时间】:2017-05-28 07:14:57
【问题描述】:
片段启动时会崩溃。可以在单选按钮代码中吗?
RadioGroup q1;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
q1 = (RadioGroup) getView().findViewById(R.id.radioGQ1);
q1.setOnCheckedChangeListener(this);
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_exercise, container, false);
}
rest -> http://pastebin.com/cRptSmD4
【问题讨论】:
标签: android android-fragments radio-button radio-group oncheckedchanged