![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Framework
liuyanggofurther
这个作者很懒,什么都没留下…
展开
-
2. Android Framework - IPC机制
简介多进程模式 开启多进程模式多进程模式的运行机制IPC基础概念 Serializable接口Parcelable接口BinderAndroid中的IPC方式 使用Bundle使用文件共享使用Messenger使用AIDL使用ContentProvider使用SocketBinder连接池选用合适的IPC方式转载 2016-03-19 16:30:21 · 397 阅读 · 0 评论 -
3. Android Framework - View
基础知识 什么是ViewView的位置参数MotionEvent和TouchSlopVelocityTracker, GestureDetector和ScrollerView的滑动 使用scrollTo和scrollBy使用动画改变布局参数各种滑动方式的对比弹性滑动 使用Scroller通过动画使用延时策略View的事件分发机制 点击事件的传递规则事件分发源码解析V转载 2016-03-21 14:23:23 · 505 阅读 · 0 评论 -
4. Android Framework - View的工作原理
ViewRoot和DecorViewMeasureSpec MesaureSpecMeasureSpec和LayoutParams的对应关系View的工作流程 measure过程layout过程draw过程自定义View 分类须知实例思想转载 2016-04-03 15:23:36 · 859 阅读 · 0 评论 -
7.3 Android Framework - PropertyAnimation
API11 引入的特性, ValueAnimator, ObjectAnimator, AnimatorSet 语法<?xml version="1.0" encoding="utf-8"?><set xmlns:android="http://schemas.android.com/apk/res/android" android:ordering=["sequentially" |转载 2016-04-03 10:22:48 · 328 阅读 · 0 评论 -
7.3 Android Framework - LayoutAnimation
作用于ViewGroup, 当ViewGroup的子元素出场时都会有这种动画效果 语法<layoutAnimation xmlns:android="http://schemas.android.com/apk/res/android" android:animation="@anim/abc_fade_in" android:animationOrder=["normal" |转载 2016-04-03 10:07:56 · 279 阅读 · 0 评论 -
7.2 Android Framework - FrameAnimation
顺序播放一组预先定义好的图片使用简单, 但容易OOM 语法<?xml version="1.0" encoding="utf-8"?><animation-list xmlns:android="http://schemas.android.com/apk/res/android" android:oneshot="false"> <item android:dr转载 2016-04-03 09:52:54 · 286 阅读 · 0 评论 -
7.1 Android Framework - ViewAnimation
View动画有四种, 分别为TranslateAnimation, ScaleAnimation, RotateAnimation和AlphaAnimation. 使用时建议使用xml定义. 语法<set xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@[package:]a转载 2016-04-03 09:34:56 · 480 阅读 · 0 评论 -
6.9 Android Framework - ClipDrawable
对应xml中clip标签, 根据自己当前等级裁剪另一个Drawable. 裁剪方向通过android:clipOrientation和android:gravity共同控制.<?xml version="1.0" encoding="utf-8"?><clip xmlns:android="http://schemas.android.com/apk/res/android" androi转载 2016-04-02 11:39:53 · 282 阅读 · 0 评论 -
6.8 Android Framework - ScaleDrawable
对应xml中的scale标签, 可以根据自己的等级将Drawable缩放到指定的比例. 不太清楚其使用场景.<?xml version="1.0" encoding="utf-8"?><scale xmlns:android="http://schemas.android.com/apk/res/android" android:drawable="@drawable/drawable_r转载 2016-04-02 11:27:12 · 324 阅读 · 0 评论 -
6.7 Android Framework - InsetDrawable
对应xml中的inset标签, 可以将其他Drawable嵌入自己中, 通常当一个View希望自己的背景比自己实际的区域小的时候使用.<?xml version="1.0" encoding="utf-8"?><inset xmlns:android="http://schemas.android.com/apk/res/android" android:insetTop="dimensi转载 2016-04-02 11:17:58 · 340 阅读 · 0 评论 -
6.6 Android Framework - TransitionDrawable
对应xml中transition标签, 用于实现两个Drawable间淡入淡出效果<?xml version="1.0" encoding="utf-8"?><transition xmlns:android="http://schemas.android.com/apk/res/android" > <item android:drawable="@drawable/@[package:转载 2016-04-02 11:07:29 · 218 阅读 · 0 评论 -
6.5 Android Framework - LevelListDrawable
对应于xml中level-list标签, 每个Drawable都有一个level的概念, 根据不同的等级, 系统会显示不同level的Drawable.<?xml version="1.0" encoding="utf-8"?><level-list xmlns:android="http://schemas.android.com/apk/res/android"> <item转载 2016-04-02 11:02:29 · 239 阅读 · 0 评论 -
6.4 Android Framework - StateListDrawable
对应xml中selector标签, 每个Drawable对应一个View的状态, 系统根据View的状态选择不同的Drawable.<?xml version="1.0" encoding="utf-8"?><selector xmlns:android="http://schemas.android.com/apk/res/android" android:constantSize=["转载 2016-04-02 10:37:36 · 607 阅读 · 0 评论 -
6.3 Android Framework - LayerDrawable
对应xml标签是layer-list, 是一种层次的Drawable集合, 通过叠加实现效果<?xml version="1.0" encoding="utf-8"?><layer-list xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@[packa转载 2016-04-02 10:20:55 · 616 阅读 · 0 评论 -
6.2 Android Framework - ShapeDrawable
<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape=["rectangle" | "oval" | "line" | "ring" ] > <corners android:radiu转载 2016-04-02 10:02:05 · 255 阅读 · 0 评论 -
6.1 Android Framework - BitmapDrawable
简介Drawable的分类 BitmapDrawableShapeDrawableLayerDrawableStateListDrawableLevelListDrawableTransitionDrawableInsetDrawableScaleDrawableClipDrawable自定义Drawable转载 2016-03-27 13:05:26 · 272 阅读 · 0 评论 -
1. Android Framework-Acitivty
Activity的生命周期正常情况 回调方法 一般情况做的工作 备注 onCreate 初始化工作 onRestart 重新启动时回调, 用户行为所致 onStart 已经可见, 但还没有出现在前台, 不能交互 onResume 已经可见, 并出现在前台, 可以交互 onPause 正在停止, 可以存储数据, 但不可太耗转载 2016-03-19 11:56:56 · 310 阅读 · 0 评论 -
5. Android Framework - RemoteViews
RemoteViews的应用 通知栏桌面小部件PendingIntent概述RemoteViews的内部机制RemoteViews的意义转载 2016-03-25 16:17:08 · 435 阅读 · 0 评论