Android中的高级主题
本专栏将住要讲解android中常见的高级主题,包括但不限于自定义View,深入属性动画,进程间通信机制研究,图片加载缓存策略,性能调优办法等。希望能够帮助大家更加深入的理解android。
XD---SJS
这个作者很懒,什么都没留下…
展开
-
Android中的View
什么是View This class represents the basic building block for user interface components. A View occupies a rectangular area on the screen and is responsible for drawing and event handling. View is the b原创 2015-11-08 15:58:22 · 744 阅读 · 1 评论 -
Android中View的事件分发机制
我觉得要想掌握android中View的事件分发机制,需要熟悉三个方法和一个优先级。 三个方法 public boolean dispatchTouchEvent(MotionEvent ev) 用来事件的分发,只要事件能够传递到当前View,那么此方法一定会被调用。返回值表示是否消耗当前事件。 public boolean onInterceptTouchEvent(MotionEvent ev)原创 2015-11-10 18:44:50 · 864 阅读 · 1 评论