摘要: LayoutInflate.inflate(int resourceId, ViewGroup root, boolean attachToRoot)三个参数含义: 首先明白下面知识点: 给控件所指定的layout_width和layout_height到底是什么意思?该属性的表示一个控件在容器中的 阅读全文
posted @ 2017-04-21 17:06 x-bing 阅读(1503) 评论(0) 推荐(1) 编辑
摘要: 1. Android事件分发是先传递到ViewGroup,再由ViewGroup传递到View的。 2. 在ViewGroup中可以通过onInterceptTouchEvent方法对事件传递进行拦截,onInterceptTouchEvent方法返回true代表不允许事件继续向子View传递,返回 阅读全文
posted @ 2017-04-21 15:23 x-bing 阅读(195) 评论(0) 推荐(0) 编辑