基础
Junki_Lee
準 & 俊
展开
-
android所有布局
1.LinearLayout 线性布局i. gravity当前控件内容显示位置ii. layout_gravity当前控件在父控件的位置2.RelativeLayout 相对布局i. layout_centerhorizontal水平剧中ii. layout_alignPatrntRight在父控件右边iii. layout_above在另外一个控件上边iv原创 2016-08-20 10:51:45 · 281 阅读 · 0 评论 -
android事件传递机制
android事件传递机制与事件传递相关的三个方法:dispatchTouchEvent(MotionEvent ev)onInterceptTouchEvent(MotionEvent ev)onTouchEvent(MotionEvent ev)三个方法之间如何协作1.触摸事件首先传递给最外层ViewGroup的dispatchTouchEvent方法2.dispatchTouchEv原创 2016-08-20 11:24:46 · 284 阅读 · 0 评论