android.view.View.setWillNotDraw(boolean willNotDraw)
2016-07-26 11:23
585 查看
一般用于viewgroup,为true时,不执行viewgroup的onDraw(Canvas canvas)方法
public void setWillNotDraw
(boolean willNotDraw)
Added inAPI level 1
If this view doesn't do any drawing on its own, set this flag to allow further optimizations. By default, this flag is not set on View, but could be set on some View subclasses such as ViewGroup. Typically, if you override
onDraw(android.graphics.Canvas)you should clear this flag.
Parameters
willNotDraw | whether or not this View draw on its own |
---|
相关文章推荐
- android studio导入github项目
- 关于Android调用相机拍照,完成后无法返回
- android中帧动画的实现方式
- [转]Android调用so文件(C代码库)方法详解
- 关于Android SQLite3多线程并发问题,学习笔记。
- Android 利用反射和 注解 进行基础类型封装
- Android仿开心消消乐大树星星无限循环效果
- Android 自定义PopupWindow指定位置或给定View坐标弹出
- 笔记---Android 中各个Layout属性的含义
- android字符串国际化
- Android 上重启应
- Android Fragment使用详解及生命周期
- android studio 快捷键
- Android屏幕适配终结者
- 退出Activity的方法
- 老罗的Android之旅
- Android AlarmReceive的启动和关闭
- android studio 提高编译的速度,安装apk过慢问题解决
- 为何 Android 开发者在逐渐用 FlatBuffers 替代 JSON
- 开发日记——手机安全卫士 Day07 2016-7-26 电话短信拦截功能