如何对文本视图进行裁剪?
我可以对 textView 的 onDraw 方法绘制的任何内容进行 ClipRect(使用矩形隐藏/显示--canvas.clipRect) 。现在可以对TextView类默认绘制的textView进行clipRect吗?
I could clipRect(hide/show using the rectangle--canvas.clipRect) anything drawn by the onDraw method of a textView. Now is it possible to clipRect the textView drawn by the TextView class by default?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正确的方法是重写 onDraw() 来执行您自己的自定义绘图操作。您到底想实现什么目标?
The proper way is to override onDraw() to perform your own custom drawing operations. What are you trying to achieve exactly?