v.setElegantTextHeight(appearance.getBoolean(attr, false));
v.setElegantTextHeight(appearance.getBoolean(attr, false)); v.setElegantTextHeight(a.getBoolean(attr, false));
public void setTextOptions(TextView... textView) { for (TextView body : textView) { body.setElegantTextHeight(true); } }
@Override protected void onFinishInflate() { super.onFinishInflate(); final TextView nameView = (TextView) findViewById(R.id.contact_tile_name); nameView.setElegantTextHeight(false); final TextView phoneTypeView = (TextView) findViewById(R.id.contact_tile_phone_type); phoneTypeView.setElegantTextHeight(false); mSecondaryButton = (ImageButton) findViewById(R.id.contact_tile_secondary_button); }
phoneCallDetailsViews.nameView.setElegantTextHeight(false); phoneCallDetailsViews.callLocationAndDate.setElegantTextHeight(false);
public void setTextUnderline(TextView... textView) { for (TextView title : textView) { title.setElegantTextHeight(true); title.setElevation(6); title.setFontFeatureSettings("smcp"); //small caps title.setPaintFlags(title.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG); } }
/** * Returns the text view for the contact name, creating it if necessary. */ public TextView getNameTextView() { if (mNameTextView == null) { mNameTextView = new TextView(getContext()); mNameTextView.setSingleLine(true); mNameTextView.setEllipsize(getTextEllipsis()); mNameTextView.setTextColor(mNameTextViewTextColor); mNameTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX, mNameTextViewTextSize); // Manually call setActivated() since this view may be added after the first // setActivated() call toward this whole item view. mNameTextView.setActivated(isActivated()); mNameTextView.setGravity(Gravity.CENTER_VERTICAL); mNameTextView.setTextAlignment(View.TEXT_ALIGNMENT_VIEW_START); mNameTextView.setId(R.id.cliv_name_textview); if (CompatUtils.isLollipopCompatible()) { mNameTextView.setElegantTextHeight(false); } addView(mNameTextView); } return mNameTextView; }
numberView.setElegantTextHeight(false); dialpadKey.setContentDescription(numberContentDescription); dialpadKey.setBackground(rippleBackground);
textView.setElegantTextHeight(attributes.getBoolean("elegantTextHeight"));
/** * Returns the text view for the data text, creating it if necessary. */ public TextView getDataView() { if (mDataView == null) { mDataView = new TextView(getContext()); mDataView.setSingleLine(true); mDataView.setEllipsize(getTextEllipsis()); mDataView.setTextAppearance(getContext(), R.style.TextAppearanceSmall); mDataView.setTextAlignment(View.TEXT_ALIGNMENT_VIEW_START); mDataView.setActivated(isActivated()); mDataView.setId(R.id.cliv_data_view); if (CompatUtils.isLollipopCompatible()) { mDataView.setElegantTextHeight(false); } addView(mDataView); } return mDataView; }