动画静态布局
对于动态壁纸项目,我在画布上使用 StaticLayout 来绘制一些文本。我打算使用 alpha 动画淡出文本,但我在网上和 SO 上遇到的所有示例都是用于动画视图。
由于我不使用 TextView,有什么方法可以将动画应用到 StaticLayout 吗?任何指示都会有所帮助。
For a live wallpaper project, I am using a StaticLayout on a canvas to draw some text. I intend to use alpha animation to fade out the text but all the examples I have come across on the net and on SO are for animating views.
As I do not use TextView, is there any way I can apply the animation to StaticLayout instead? Any pointers would help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以设置用于静态布局的绘制的 alpha 值。
You could set the alpha value on the paint used for the staticlayout.