@Override public void setTextAppearance(Context context, int resId) { super.setTextAppearance(context, resId); if (mTextHelper != null) { mTextHelper.setTextAppearanceForTextColor(resId); } }
@TargetApi(Build.VERSION_CODES.M) @Override public void setTextAppearance(int resId) { super.setTextAppearance(resId); if (mTextHelper != null) { mTextHelper.setTextAppearanceForTextColor(resId); } }
/** */ @Override @SuppressWarnings("deprecation") public void setTextAppearance(@NonNull Context context, @StyleRes int resId) { super.setTextAppearance(context, resId); this.ensureDecorator(); mDecorator.applyTextAppearanceFont(resId); }
/** */ @Override @SuppressWarnings("deprecation") public void setTextAppearance(@NonNull Context context, @StyleRes int resId) { super.setTextAppearance(context, resId); this.ensureDecorator(); mDecorator.applyTextAppearanceFont(resId); }
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); }