转载自
http://blog.youkuaiyun.com/szyangzhen/article/details/48094223
setBounds(int left, int top, int right, int bottom)
Drawable的setBounds方法有四个参数,setBounds(int left, int top, int right, int bottom),这个四参数指的是drawable将在被绘制在canvas的哪个矩形区域内(这个矩形区域的坐标是以canvas左上角为坐标原点的)。
本文详细介绍了Drawable的setBounds方法及其四个参数的作用。该方法用于定义Drawable在Canvas上的绘制区域,通过设置左、顶、右、底四个坐标来确定具体的绘制范围。
565

被折叠的 条评论
为什么被折叠?



