本文整理了Java中android.widget.TextView.getOverlay()
方法的一些代码示例,展示了TextView.getOverlay()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TextView.getOverlay()
方法的具体详情如下:
包路径:android.widget.TextView
类名称: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);
内容来源于网络,如有侵权,请联系作者删除!