congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
RadioButton.isChecked
Code IndexAdd Tabnine to your IDE (free)

How to use
isChecked
method
in
android.widget.RadioButton

Best Java code snippets using android.widget.RadioButton.isChecked (Showing top 20 results out of 873)

origin: Jacksgong/JKeyboardPanelSwitch

/**
 * Resolved for Full Screen Theme or Translucent Status Theme.
 */
public void onClickExtraThemeResolved(final View view) {
  final boolean fullScreenTheme = mFullScreenRb.isChecked();
  Intent i = new Intent(this, ChattingResolvedHandleByPlaceholderActivity.class);
  i.putExtra(KEY_FULL_SCREEN_THEME, fullScreenTheme);
  startActivity(i);
}
origin: Jacksgong/JKeyboardPanelSwitch

public void onClickResolved(final View view) {
  Intent i = new Intent();
  i.putExtra(KEY_TRANSLUCENT_STATUS_FIT_SYSTEM_WINDOW_TRUE,
      mTranslucentStatusTrueCb.isChecked());
  i.putExtra(KEY_IGNORE_RECOMMEND_PANEL_HEIGHT, mIgnoreRecommendPanelHeightCb.isChecked());
  i.putExtra(KEY_MULTI_SUB_PANEL, mMultipleSubPanelCb.isChecked());
  final ComponentName componentName;
  if (mAppCompatActivityRb.isChecked()) {
    componentName = new ComponentName(this, ChattingResolvedActivity.class);
  } else {
    componentName = new ComponentName(this, ChattingResolvedFragmentActivity.class);
  }
  i.setComponent(componentName);
  startActivity(i);
}
origin: udacity/ud851-Exercises

  /**
   * onPrioritySelected is called whenever a priority button is clicked.
   * It changes the value of mPriority based on the selected button.
   */
  public void onPrioritySelected(View view) {
    if (((RadioButton) findViewById(R.id.radButton1)).isChecked()) {
      mPriority = 1;
    } else if (((RadioButton) findViewById(R.id.radButton2)).isChecked()) {
      mPriority = 2;
    } else if (((RadioButton) findViewById(R.id.radButton3)).isChecked()) {
      mPriority = 3;
    }
  }
}
origin: udacity/ud851-Exercises

  /**
   * onPrioritySelected is called whenever a priority button is clicked.
   * It changes the value of mPriority based on the selected button.
   */
  public void onPrioritySelected(View view) {
    if (((RadioButton) findViewById(R.id.radButton1)).isChecked()) {
      mPriority = 1;
    } else if (((RadioButton) findViewById(R.id.radButton2)).isChecked()) {
      mPriority = 2;
    } else if (((RadioButton) findViewById(R.id.radButton3)).isChecked()) {
      mPriority = 3;
    }
  }
}
origin: udacity/ud851-Exercises

  /**
   * onPrioritySelected is called whenever a priority button is clicked.
   * It changes the value of mPriority based on the selected button.
   */
  public void onPrioritySelected(View view) {
    if (((RadioButton) findViewById(R.id.radButton1)).isChecked()) {
      mPriority = 1;
    } else if (((RadioButton) findViewById(R.id.radButton2)).isChecked()) {
      mPriority = 2;
    } else if (((RadioButton) findViewById(R.id.radButton3)).isChecked()) {
      mPriority = 3;
    }
  }
}
origin: udacity/ud851-Exercises

  /**
   * onPrioritySelected is called whenever a priority button is clicked.
   * It changes the value of mPriority based on the selected button.
   */
  public void onPrioritySelected(View view) {
    if (((RadioButton) findViewById(R.id.radButton1)).isChecked()) {
      mPriority = 1;
    } else if (((RadioButton) findViewById(R.id.radButton2)).isChecked()) {
      mPriority = 2;
    } else if (((RadioButton) findViewById(R.id.radButton3)).isChecked()) {
      mPriority = 3;
    }
  }
}
origin: udacity/ud851-Exercises

  /**
   * onPrioritySelected is called whenever a priority button is clicked.
   * It changes the value of mPriority based on the selected button.
   */
  public void onPrioritySelected(View view) {
    if (((RadioButton) findViewById(R.id.radButton1)).isChecked()) {
      mPriority = 1;
    } else if (((RadioButton) findViewById(R.id.radButton2)).isChecked()) {
      mPriority = 2;
    } else if (((RadioButton) findViewById(R.id.radButton3)).isChecked()) {
      mPriority = 3;
    }
  }
}
origin: udacity/ud851-Exercises

  /**
   * onPrioritySelected is called whenever a priority button is clicked.
   * It changes the value of mPriority based on the selected button.
   */
  public void onPrioritySelected(View view) {
    if (((RadioButton) findViewById(R.id.radButton1)).isChecked()) {
      mPriority = 1;
    } else if (((RadioButton) findViewById(R.id.radButton2)).isChecked()) {
      mPriority = 2;
    } else if (((RadioButton) findViewById(R.id.radButton3)).isChecked()) {
      mPriority = 3;
    }
  }
}
origin: udacity/ud851-Exercises

  /**
   * onPrioritySelected is called whenever a priority button is clicked.
   * It changes the value of mPriority based on the selected button.
   */
  public void onPrioritySelected(View view) {
    if (((RadioButton) findViewById(R.id.radButton1)).isChecked()) {
      mPriority = 1;
    } else if (((RadioButton) findViewById(R.id.radButton2)).isChecked()) {
      mPriority = 2;
    } else if (((RadioButton) findViewById(R.id.radButton3)).isChecked()) {
      mPriority = 3;
    }
  }
}
origin: udacity/ud851-Exercises

  /**
   * onPrioritySelected is called whenever a priority button is clicked.
   * It changes the value of mPriority based on the selected button.
   */
  public void onPrioritySelected(View view) {
    if (((RadioButton) findViewById(R.id.radButton1)).isChecked()) {
      mPriority = 1;
    } else if (((RadioButton) findViewById(R.id.radButton2)).isChecked()) {
      mPriority = 2;
    } else if (((RadioButton) findViewById(R.id.radButton3)).isChecked()) {
      mPriority = 3;
    }
  }
}
origin: udacity/ud851-Exercises

  /**
   * onPrioritySelected is called whenever a priority button is clicked.
   * It changes the value of mPriority based on the selected button.
   */
  public void onPrioritySelected(View view) {
    if (((RadioButton) findViewById(R.id.radButton1)).isChecked()) {
      mPriority = 1;
    } else if (((RadioButton) findViewById(R.id.radButton2)).isChecked()) {
      mPriority = 2;
    } else if (((RadioButton) findViewById(R.id.radButton3)).isChecked()) {
      mPriority = 3;
    }
  }
}
origin: Aspsine/SwipeToLoadLayout

  @Override
  public void onCheckedChanged(RadioGroup group, int checkedId) {
    for (int i = 0; i < rgFooter.getChildCount(); i++) {
      RadioButton rb = (RadioButton) rgFooter.getChildAt(i);
      if (rb.isChecked()) {
        changeFooter(i);
        break;
      }
    }
  }
});
origin: Aspsine/SwipeToLoadLayout

  @Override
  public void onCheckedChanged(RadioGroup group, int checkedId) {
    for (int i = 0; i < rgHeader.getChildCount(); i++) {
      RadioButton rb = (RadioButton) rgHeader.getChildAt(i);
      if (rb.isChecked()) {
        changeHeader(i);
        break;
      }
    }
  }
});
origin: Aspsine/SwipeToLoadLayout

  @Override
  public void onCheckedChanged(RadioGroup group, int checkedId) {
    for (int i = 0; i < rgStyle.getChildCount(); i++) {
      RadioButton rb = (RadioButton) rgStyle.getChildAt(i);
      if (rb.isChecked()) {
        changeStyle(i);
        break;
      }
    }
  }
});
origin: k9mail/k-9

private void saveSettings() {
  mAccount.setEmail(mAccountEmail.getText().toString());
  mAccount.setAlwaysBcc(mAccountAlwaysBcc.getText().toString());
  mAccount.setName(mAccountName.getText().toString());
  mAccount.setSignatureUse(mAccountSignatureUse.isChecked());
  if (mAccountSignatureUse.isChecked()) {
    mAccount.setSignature(mAccountSignature.getText().toString());
    boolean isSignatureBeforeQuotedText = mAccountSignatureBeforeLocation.isChecked();
    mAccount.setSignatureBeforeQuotedText(isSignatureBeforeQuotedText);
  }
  Preferences.getPreferences(getApplicationContext()).saveAccount(mAccount);
}
origin: willowtreeapps/spruce-android

private void setChildrenOnClickListener(AppCompatRadioButton child) {
  GridLayout parent = (GridLayout) child.getParent();
  final int childCount = parent.getChildCount();
  for (int i = 0; i < childCount; i++) {
    final View v = parent.getChildAt(i);
    if (v instanceof AppCompatRadioButton) {
      if (((RadioButton) v).isChecked()) {
        activeRadioButton = (AppCompatRadioButton) v;
      }
      v.setOnClickListener(this);
    }
  }
}
origin: robolectric/robolectric

@Test
public void canBeExplicitlyChecked() throws Exception {
 assertFalse(radioButton.isChecked());
 radioButton.setChecked(true);
 assertTrue(radioButton.isChecked());
 radioButton.setChecked(false);
 assertFalse(radioButton.isChecked());
}
origin: robolectric/robolectric

@Test
public void canBeClickedToToggleCheckedState() throws Exception {
 assertFalse(radioButton.isChecked());
 radioButton.performClick();
 assertTrue(radioButton.isChecked());
 radioButton.performClick();
 assertTrue(radioButton.isChecked()); // radio buttons can't be turned off again with a click
}
origin: robolectric/robolectric

@Test
public void canBeToggledBetweenCheckedState() throws Exception {
 assertFalse(radioButton.isChecked());
 radioButton.toggle();
 assertTrue(radioButton.isChecked());
 radioButton.toggle();
 assertTrue(radioButton.isChecked()); // radio buttons can't be turned off again with a click
}
origin: seven332/EhViewer

@Override
public void addView(View child, int index, ViewGroup.LayoutParams params) {
  if (child instanceof RadioButton) {
    final RadioButton button = (RadioButton) child;
    if (button.isChecked()) {
      mProtectFromCheckedChange = true;
      if (mCheckedId != -1) {
        setCheckedStateForView(mCheckedId, false);
      }
      mProtectFromCheckedChange = false;
      setCheckedId(button.getId());
    }
  }
  super.addView(child, index, params);
}
android.widgetRadioButtonisChecked

Popular methods of RadioButton

  • setChecked
  • setText
  • setOnClickListener
  • setOnCheckedChangeListener
  • <init>
  • getId
  • setId
  • getText
  • setEnabled
  • setVisibility
  • setButtonDrawable
  • setTag
  • setButtonDrawable,
  • setTag,
  • setTextColor,
  • setLayoutParams,
  • setBackgroundDrawable,
  • getTag,
  • setBackgroundColor,
  • setTextSize,
  • onDraw

Popular in Java

  • Making http requests using okhttp
  • getSystemService (Context)
  • getSharedPreferences (Context)
  • onCreateOptionsMenu (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now