private void insertRadioButton() { android.view.LayoutInflater inflater = getInflater(); mRadioButton = (android.widget.RadioButton)inflater.inflate([email protected] .list_menu_item_radio, this, false); addView(mRadioButton); }
public override void addView(android.view.View child, int index, android.view.ViewGroup .LayoutParams @params) { if (child is android.widget.RadioButton) { android.widget.RadioButton button = (android.widget.RadioButton)child; if (button.isChecked()) { mProtectFromCheckedChange = true; if (mCheckedId != -1) { setCheckedStateForView(mCheckedId, false); } mProtectFromCheckedChange = false; setCheckedId(button.getId()); } } base.addView(child, index, @params); }