摘要: 自定义View中的onMeasure()方法 在自定义 View 的时候,需要实现 onMeasure() 方法,去告诉系统这个自定义 View 的大小。 onMeasure() 方法如下: 测量模式 通过 MeasureSpec 类解析 和 帮助测量 View。 MeasureSpec 是一个32 阅读全文
posted @ 2016-09-12 23:03 勇敢的少年啊 阅读(266) 评论(0) 推荐(0) 编辑