android.widget.TextView.getIncludeFontPadding()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(142)

本文整理了Java中android.widget.TextView.getIncludeFontPadding()方法的一些代码示例,展示了TextView.getIncludeFontPadding()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TextView.getIncludeFontPadding()方法的具体详情如下:
包路径:android.widget.TextView
类名称:TextView
方法名:getIncludeFontPadding

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());

相关文章

TextView类方法