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

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

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

TextView.getOverlay介绍

暂无

代码示例

代码示例来源:origin: googlesamples/android-unsplash

@Override
public void onAnimationEnd(Animator animation) {
  textView.getOverlay().remove(drawable);
  textView.setTextColor(textColors);
  textView.setHintTextColor(hintColors);
  textView.setHighlightColor(highlightColor);
  textView.setLinkTextColor(linkColors);
}

代码示例来源:origin: DroidsOnRoids/Workcation

@Override
public void onAnimationEnd(Animator animation) {
  textView.getOverlay().remove(drawable);
  textView.setTextColor(textColors);
  textView.setHintTextColor(hintColors);
  textView.setHighlightColor(highlightColor);
  textView.setLinkTextColor(linkColors);
}

代码示例来源:origin: shazam/reflow-animator

/**
 * Call to recycle bitmaps and allow the {@code from} TextView to keep drawing as normal.
 * Only useful if the animation has been set to freeze on last frame, happens automatically otherwise.
 */
@SuppressWarnings("WeakerAccess")
public void unfreeze() {
  sourceView.setWillNotDraw(false);
  sourceView.getOverlay().clear();
  ((ViewGroup) sourceView.getParent()).setClipChildren(true);
  if (startText != null) {
    startText.recycle();
    startText = null;
  }
  if (endText != null) {
    endText.recycle();
    endText = null;
  }
}

代码示例来源:origin: googlesamples/android-unsplash

textView.getOverlay().add(drawable);

代码示例来源:origin: DroidsOnRoids/Workcation

textView.getOverlay().add(drawable);

相关文章

微信公众号

最新文章

更多

TextView类方法