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

How to use
setTextAppearance
method
in
android.widget.RadioButton

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

origin: aa112901/remusic

@Override
public void setTextAppearance(Context context, int resId) {
  super.setTextAppearance(context, resId);
  if (mTextHelper != null) {
    mTextHelper.setTextAppearanceForTextColor(resId);
  }
}
origin: aa112901/remusic

@TargetApi(Build.VERSION_CODES.M)
@Override
public void setTextAppearance(int resId) {
  super.setTextAppearance(resId);
  if (mTextHelper != null) {
    mTextHelper.setTextAppearanceForTextColor(resId);
  }
}
origin: com.albedinsky.android/ui-widget-common

/**
 */
@Override
@SuppressWarnings("deprecation")
public void setTextAppearance(@NonNull Context context, @StyleRes int resId) {
  super.setTextAppearance(context, resId);
  this.ensureDecorator();
  mDecorator.applyTextAppearanceFont(resId);
}
origin: com.albedinsky.android/ui

/**
 */
@Override
@SuppressWarnings("deprecation")
public void setTextAppearance(@NonNull Context context, @StyleRes int resId) {
  super.setTextAppearance(context, resId);
  this.ensureDecorator();
  mDecorator.applyTextAppearanceFont(resId);
}
origin: Odoo-mobile/framework

private void createRadioGroup() {
  final LayoutParams params = new LayoutParams(LayoutParams.MATCH_PARENT,
      LayoutParams.WRAP_CONTENT);
  if (mRadioGroup == null) {
    mRadioGroup = new RadioGroup(mContext);
    mRadioGroup.setLayoutParams(params);
  } else {
    removeView(mRadioGroup);
  }
  mRadioGroup.removeAllViews();
  mRadioGroup.setOnCheckedChangeListener(this);
  for (ODataRow label : items) {
    RadioButton rdoBtn = new RadioButton(mContext);
    rdoBtn.setLayoutParams(params);
    rdoBtn.setText(label.getString(mModel.getDefaultNameColumn()));
    if (textSize > -1) {
      rdoBtn.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize);
    }
    if (appearance > -1) {
      rdoBtn.setTextAppearance(mContext, appearance);
    }
    rdoBtn.setTextColor(textColor);
    mRadioGroup.addView(rdoBtn);
  }
  addView(mRadioGroup);
}
android.widgetRadioButtonsetTextAppearance

Popular methods of RadioButton

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

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • runOnUiThread (Activity)
  • getApplicationContext (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Table (org.hibernate.mapping)
    A relational table
  • CodeWhisperer 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