congrats Icon
New! Announcing our next generation AI code completions
Read here
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

  • Making http requests using okhttp
  • putExtra (Intent)
  • startActivity (Activity)
  • setScale (BigDecimal)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • JComboBox (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
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • 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