android drawable setBounds()
来源:互联网 发布:佶天鸿淘宝店 编辑:程序博客网 时间:2024/05/18 01:07
/** * Specify a bounding rectangle for the Drawable. This is where the drawable * will draw when its draw() method is called. */ public void setBounds(int left, int top, int right, int bottom) {}
一直以为setBounds的功能类似于canvas的clip, 是从drawable中截取bounds指定的一部分区域来进行显示(影响drawable的draw),
今天试了一把才发现,bounds并不是将某一区域截取,而是将drawable的整个部分都限制在了bounds规定的区域内,这样就可以实现缩放/扩大.
0 0
- android drawable setBounds()
- android Drawable setbounds()介绍
- android Drawable setbounds()介绍
- android Drawable setbounds()介绍
- Drawable的setBounds方法
- Drawable setBounds方法
- Drawable setBounds()中的rect
- Android drawable 的setBounds(0, 5, dip2px(20), dip2px(20)) 方法
- setBounds
- setBounds
- android.graphics.drawable.Drawable
- android drawable Transition Drawable
- 不要使用Drawable的setBounds方法来指定其在控件作为背景的显示位置
- Android drawable
- Android Drawable
- android drawable
- Android Drawable
- Android Drawable
- LOL与Dota雪崩效果
- JMS
- Base64
- java 中的 equals、==与hashcode
- yum update 问题
- android drawable setBounds()
- Android中Intent传递对象(一)Serializable
- DDS技术原理即应用
- c++ windows 获取mac地址
- MFC的使用
- hdoj 1860 统计字符
- 分支-15. 日K蜡烛图(15)
- 数据挖掘--逻辑斯蒂回归的java实现(求最优点的方法用是梯度下降法)
- MJRefresh刷新控件