Tabnine Logo
RadioButton.getTag
Code IndexAdd Tabnine to your IDE (free)

How to use
getTag
method
in
android.widget.RadioButton

Best Java code snippets using android.widget.RadioButton.getTag (Showing top 7 results out of 315)

origin: stackoverflow.com

@Override
 public void onCheckedChanged(CompoundButton compoundButton, boolean isChecked) {
   if (isChecked) {
     for (RadioButton btn : mGroup)
       if (!btn.getTag().equals(compoundButton.getTag()))
         btn.setChecked(false);
   }
 }
origin: ttdevs/android

  @Override
  public void onCheckedChanged(RadioGroup group, int checkedId) {
    RadioButton checked = (RadioButton) group.findViewById(checkedId);
    mDevice = (BluetoothDevice) checked.getTag();
  }
});
origin: apptentive/apptentive-android

@Override
public void onViewStateRestored(@Nullable Bundle savedInstanceState) {
  super.onViewStateRestored(savedInstanceState);
  // Restore instance state after the fragment tries to to avoid any UI weirdness.
  if (savedInstanceState != null) {
    valueWasSelected = savedInstanceState.getBoolean(KEY_VALUE_WAS_SELECTED, false);
    selectedValue = savedInstanceState.getInt(KEY_SELECTED_VALUE, 0);
  }
  for (int i = 0; i < radioGroup.getChildCount(); i++) {
    RadioButton radioButton = (RadioButton) radioGroup.getChildAt(i);
    if (valueWasSelected && (int) radioButton.getTag() == selectedValue) {
      radioButton.setChecked(true);
      return;
    }
  }
}
origin: AriaLyy/BlogDemo

@Override
public void onCheckedChanged(RadioGroup group, int checkedId) {
  RadioButton rb = (RadioButton) group.getChildAt(checkedId);
  if (rb.isChecked()) {
    chooseFragment(String.valueOf(rb.getTag()));
  }
}
origin: gyw520gyw/GroupButtonView

  @Override
  public void onCheckedChanged(RadioGroup rg, int i) {
    RadioButton rb = (RadioButton) findViewById(i);
    if (rb.isChecked()) {
      if (listener != null) {
        listener.groupBtnClick(rb.getTag().toString());
      }
    }
  }
});
origin: fennifith/Status

  @Override
  public void onCheckedChanged(RadioGroup group, int checkedId) {
    for (int i = 0; i < group.getChildCount(); i++) {
      RadioButton child = (RadioButton) group.getChildAt(i);
      child.setChecked(child.getId() == checkedId);
      if (child.getId() == checkedId)
        selectedPreference = (String) child.getTag();
    }
  }
});
origin: stackoverflow.com

RadioButton radioButton = radioButtons.get(i);
if (radioButton
    .getTag()
    .toString()
    .equalsIgnoreCase(
android.widgetRadioButtongetTag

Popular methods of RadioButton

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

Popular in Java

  • Making http requests using okhttp
  • findViewById (Activity)
  • scheduleAtFixedRate (Timer)
  • onRequestPermissionsResult (Fragment)
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JPanel (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Sublime Text for Python
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