android源码
Genius9_9
哎哟喂 无以伦比天才小九九
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Android5.1 触摸屏事件分发机制和源码解析一 --(View篇)
一。案例分析首先,我们写一个非常简单的项目。<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" andr原创 2015-10-15 13:19:40 · 1405 阅读 · 0 评论 -
Android5.1 触摸屏事件分发机制和源码解析二 --(ViewGroup篇)
一。案例分析还是和上文一样,写一个非常简单的项目。我们自定义了一个LinearLayout和Button控件。由代码中,我们可以发现LinearLayout比Button多了一个onInterceptTouchEvent()方法。MyLinearLayout.javapackage com.example.viewanalyse;import android.content原创 2015-10-16 18:40:39 · 872 阅读 · 0 评论 -
利用attrs.xml和 styles.xml定义Preference
1.attrs.xml/android/frameworks/base/core/res/res/values/attrs.xmlattrs.xml文件为View/ViewGroup定义了所有可用的属性。它的根元素是,它包含了俩个子元素:a.attr子元素:定义的属性。b.declare-styleable子元素:定义一个styleabl原创 2016-07-15 14:22:02 · 1252 阅读 · 0 评论
分享