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

How to use
setBackgroundColor
method
in
android.widget.RadioButton

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

origin: aa112901/remusic

@Override
public void setBackgroundColor(int color) {
  super.setBackgroundColor(color);
  if (mBackgroundHelper != null) {
    mBackgroundHelper.setBackgroundColor(color);
  }
}
origin: Rukey7/MvpApp

  @Override
  public void onCheckedChanged(RadioGroup group, int checkedId) {
    // 取的是 tag 字符串值,需转换为颜色
    String color = (String) findViewById(checkedId).getTag();
    mDanmakuTextColor = Color.parseColor(color);
    mDanmakuCurColor.setBackgroundColor(mDanmakuTextColor);
  }
});
origin: Rukey7/IjkPlayerView

  @Override
  public void onCheckedChanged(RadioGroup group, int checkedId) {
    // 取的是 tag 字符串值,需转换为颜色
    String color = (String) findViewById(checkedId).getTag();
    mDanmakuTextColor = Color.parseColor(color);
    mDanmakuCurColor.setBackgroundColor(mDanmakuTextColor);
  }
});
origin: stackoverflow.com

 RadioButton rad;//initialize first!
//You can set the background color
rad.setBackgroundColor(Color.BLUE);
//Text color
rad.setTextColor(Color.WHITE);
//or highlight color
rad.setHighlightColor(Color.GREEN);
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: sytolk/TaxiAndroidOpen

if (server.getRecordstatus()) {
  title.append("UP");
  rb[i].setBackgroundColor(ContextCompat.getColor(mActivity, R.color.label_color));
} else {
  title.append("DOWN");
  rb[i].setBackgroundColor(ContextCompat.getColor(mActivity, R.color.red_color));
android.widgetRadioButtonsetBackgroundColor

Popular methods of RadioButton

  • setChecked
  • isChecked
  • setText
  • setOnClickListener
  • setOnCheckedChangeListener
  • <init>
  • getId
  • setId
  • getText
  • setEnabled
  • setVisibility
  • setButtonDrawable
  • setVisibility,
  • setButtonDrawable,
  • setTag,
  • setTextColor,
  • setLayoutParams,
  • setBackgroundDrawable,
  • getTag,
  • 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
  • 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