congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
RadioButton.setBackgroundDrawable
Code IndexAdd Tabnine to your IDE (free)

How to use
setBackgroundDrawable
method
in
android.widget.RadioButton

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

origin: aa112901/remusic

@Override
public void setBackgroundDrawable(Drawable background) {
  super.setBackgroundDrawable(background);
  if (mBackgroundHelper != null) {
    mBackgroundHelper.setBackgroundDrawableExternal(background);
  }
}
origin: com.albedinsky.android/ui-widget-common

/**
 */
@Override
@SuppressWarnings("deprecation")
public void setBackgroundDrawable(Drawable background) {
  super.setBackgroundDrawable(background);
  this.ensureDecorator();
  mDecorator.applyBackgroundTint();
}
origin: com.albedinsky.android/ui

/**
 */
@Override
@SuppressWarnings("deprecation")
public void setBackgroundDrawable(Drawable background) {
  super.setBackgroundDrawable(background);
  this.ensureDecorator();
  mDecorator.applyBackgroundTint();
}
origin: yhyzgn/TabPager

/**
 * 设置Tab样式
 *
 * @param rb      Tab项
 * @param checked 是否选中
 */
private void setTabStyle(RadioButton rb, boolean checked) {
  if (checked) {
    rb.setTextColor(mNavTextCheckedColor);
    if (null == mNavBgCheckedImg) {
      rb.setBackgroundColor(mNavBgCheckedColor);
    } else {
      rb.setBackgroundDrawable(mNavBgCheckedImg);
    }
  } else {
    rb.setTextColor(mNavTextDefaultColor);
    rb.setBackgroundColor(Color.TRANSPARENT);
    rb.setBackgroundDrawable(null);
  }
}
origin: stackoverflow.com

  femaleButton.setBackgroundDrawable(getResources().getDrawable(
    R.drawable.unselected_left_background));
  maleButton.setBackgroundDrawable(getResources().getDrawable(
    R.drawable.selected_right_background));
 } else {
if (checked) {
 if (android.os.Build.VERSION.SDK_INT < 16) {
  femaleButton.setBackgroundDrawable(getResources().getDrawable(
    R.drawable.selected_left_background));
  maleButton.setBackgroundDrawable(getResources().getDrawable(
    R.drawable.unselected_right_background));
 } else {
origin: mvpleung/SwitchButton

  mRadioButton.setBackground(getStateDrawable(i));
} else {
  mRadioButton.setBackgroundDrawable(getStateDrawable(i));
origin: linglongxin24/ARDevelopDemo

  newRadioButton.setBackground(selectorDrawable);
else
  newRadioButton.setBackgroundDrawable(selectorDrawable);
android.widgetRadioButtonsetBackgroundDrawable

Popular methods of RadioButton

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

Popular in Java

  • Updating database using SQL prepared statement
  • getSharedPreferences (Context)
  • getSupportFragmentManager (FragmentActivity)
  • compareTo (BigDecimal)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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