本文整理了Java中android.widget.TextView.setElegantTextHeight()
方法的一些代码示例,展示了TextView.setElegantTextHeight()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TextView.setElegantTextHeight()
方法的具体详情如下:
包路径:android.widget.TextView
类名称:TextView
方法名:setElegantTextHeight
暂无
代码示例来源:origin: rey5137/material
v.setElegantTextHeight(appearance.getBoolean(attr, false));
代码示例来源:origin: rey5137/material
v.setElegantTextHeight(appearance.getBoolean(attr, false));
v.setElegantTextHeight(a.getBoolean(attr, false));
代码示例来源:origin: enricocid/iven-feed-reader
public void setTextOptions(TextView... textView) {
for (TextView body : textView) {
body.setElegantTextHeight(true);
}
}
代码示例来源:origin: geniusgithub/AndroidDialer
@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);
}
代码示例来源:origin: geniusgithub/AndroidDialer
phoneCallDetailsViews.nameView.setElegantTextHeight(false);
phoneCallDetailsViews.callLocationAndDate.setElegantTextHeight(false);
代码示例来源:origin: enricocid/iven-feed-reader
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);
}
}
代码示例来源:origin: geniusgithub/AndroidDialer
/**
* 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;
}
代码示例来源:origin: geniusgithub/AndroidDialer
numberView.setElegantTextHeight(false);
dialpadKey.setContentDescription(numberContentDescription);
dialpadKey.setBackground(rippleBackground);
代码示例来源:origin: jelic98/dynamico
textView.setElegantTextHeight(attributes.getBoolean("elegantTextHeight"));
代码示例来源:origin: geniusgithub/AndroidDialer
/**
* 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;
}
内容来源于网络,如有侵权,请联系作者删除!