Exemple #1
0
 private void insertRadioButton()
 {
     android.view.LayoutInflater inflater = getInflater();
     mRadioButton = (android.widget.RadioButton)inflater.inflate([email protected]
                                                                 .list_menu_item_radio, this, false);
     addView(mRadioButton);
 }
Exemple #2
0
 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);
 }
Exemple #3
0
		private void insertRadioButton()
		{
			android.view.LayoutInflater inflater = getInflater();
			mRadioButton = (android.widget.RadioButton)inflater.inflate([email protected]
				.list_menu_item_radio, this, false);
			addView(mRadioButton);
		}