本文整理了Java中android.widget.TextView.getIncludeFontPadding()
方法的一些代码示例,展示了TextView.getIncludeFontPadding()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TextView.getIncludeFontPadding()
方法的具体详情如下:
包路径:android.widget.TextView
类名称:TextView
方法名:getIncludeFontPadding
暂无
代码示例来源:origin: square/assertj-android
@TargetApi(JELLY_BEAN)
public S isIncludingFontPadding() {
isNotNull();
assertThat(actual.getIncludeFontPadding()) //
.overridingErrorMessage("Expected to be including font padding but was not.") //
.isTrue();
return myself;
}
代码示例来源:origin: square/assertj-android
@TargetApi(JELLY_BEAN)
public S isNotIncludingFontPadding() {
isNotNull();
assertThat(actual.getIncludeFontPadding()) //
.overridingErrorMessage("Expected to not be including font padding but was.") //
.isFalse();
return myself;
}
代码示例来源:origin: stackoverflow.com
mTextView.getLineSpacingMultiplier(),
mTextView.getLineSpacingExtra(),
mTextView.getIncludeFontPadding());
update();
代码示例来源:origin: com.squareup.assertj/assertj-android
@TargetApi(JELLY_BEAN)
public S isNotIncludingFontPadding() {
isNotNull();
assertThat(actual.getIncludeFontPadding()) //
.overridingErrorMessage("Expected to not be including font padding but was.") //
.isFalse();
return myself;
}
代码示例来源:origin: com.squareup.assertj/assertj-android
@TargetApi(JELLY_BEAN)
public S isIncludingFontPadding() {
isNotNull();
assertThat(actual.getIncludeFontPadding()) //
.overridingErrorMessage("Expected to be including font padding but was not.") //
.isTrue();
return myself;
}
代码示例来源:origin: jbruchanov/AnUitor
data.put("IncludeFontPadding", tv.getIncludeFontPadding());
data.put("MarqueeRepeatLimit", tv.getMarqueeRepeatLimit());
data.put("MaxEms", tv.getMaxEms());
代码示例来源:origin: shazam/reflow-animator
private static Layout createUnrestrictedLayout(@Nonnull TextView view) {
CharSequence text = view.getText();
Layout layout = view.getLayout();
TextPaint paint = layout.getPaint();
if (SDK_INT >= M) {
return StaticLayout.Builder
.obtain(text, 0, text.length(), layout.getPaint(), layout.getWidth())
.setAlignment(layout.getAlignment())
.setLineSpacing(view.getLineSpacingExtra(), view.getLineSpacingMultiplier())
.setIncludePad(view.getIncludeFontPadding())
.setBreakStrategy(view.getBreakStrategy())
.setHyphenationFrequency(view.getHyphenationFrequency())
.build();
} else {
return new StaticLayout(
text,
paint,
text.length(),
layout.getAlignment(),
view.getLineSpacingMultiplier(),
view.getLineSpacingExtra(),
view.getIncludeFontPadding());
}
}
代码示例来源:origin: bzsome/VirtualApp-x326
layout = new StaticLayout(text, paint, getTextWidth(textView),
getLayoutAlignment(textView), textView.getLineSpacingMultiplier(),
textView.getLineSpacingExtra(), textView.getIncludeFontPadding());
代码示例来源:origin: darkskygit/VirtualApp
layout = new StaticLayout(text, paint, getTextWidth(textView),
getLayoutAlignment(textView), textView.getLineSpacingMultiplier(),
textView.getLineSpacingExtra(), textView.getIncludeFontPadding());
内容来源于网络,如有侵权,请联系作者删除!