Home

Android Layout

Android Layout Android Linear Layout: LinearLayout is a ViewGroup subclass, used to provide child View elements one by one either in a particular direction either horizontally or vertically based on the orientation property. Android Relative Layout: RelativeLayout is a ViewGroup subclass, used to specify the position of child View elements...

Read more

Android Handler

Android Handler Message MessageQueue Looper Looper.prepare(); Looper.loop(); Reference Android组件系列:Handler机制详解

Read more

Android Dalvik

Android Dalvik Reference Android runtime and Dalvik Exploring the Differences Between Dalvik and ART Runtimes in Android

Read more

Android Binder

Android Binder Linux 进程间通信 匿名管道(PIPE) 命名管道(FIFO) 信号量 共享内存映射 共享内存 消息队列 信号量 UNIX域套接字(Unix Domain Socket) socketpair 匿名管道(PIPE): 优点:简单方便,基于操作系统内核提供的缓冲区实现进程间通信。 缺点: 局限于单向通信。 只能用于具有亲缘关系的进程间通信,即父子进程。 缓冲区大小有限。 命名管道(FIFO): 优点: 实现了任意关系进程间的通信,克服了匿名管道的亲缘关系限制。 存在于文件系统中,可以像操作普通文件一样操作命名管道。 缺点: ...

Read more

Android Activity Lifecycle

Android Activity Lifecycle 生命周期 onCreate onStart onResume onPause onStop onDestroy 当Activity在异常情况下终止时: onSaveInstanceState onRestoreInstanceState 横竖屏切换的生命周期:onPause() --> onSaveInstanceState() --> onStop() --> onDestory() --> onCreate() --> onStart() --> onRestoreInstanceState() --> onResume() Activity 四种启动模式...

Read more