prefers
menu
外部类
匿名类
intend
adpater
prepare
Android 应用程序组件
Activities - 屏幕
-
AppCompatActivity
-
设置 layout
-
生命周期
-
获取元素
-
设置视图是否可见
-
加载图标
Services - 后台
- demo
- How to register a service
- How to start and stop a service
- How to test a service
Broadcast Receivers - 广播
- 自己看看之前的
附件组件
Layouts
- LinearLayout
horizontal
- TableLayout
- FrameLayout
- RelativeLayout
- AbsoluteLayout
widgets
listener
-
high-level
-
low-level
-
use
-
不继承,创建一个监听器对象【匿名类 anonymous class】
-
匿名内部类【anonymous inner class】
TextView
EditText
check boxes
radio buttons
spinners
seek bars【进度条】
Image
scroll bars
menus
- defined
- how to display an options menu
- How to handle option menu events
- How to start a new activity
Fragments
- 布局文件添加到 Activity 中
- 动态代码添加到 Activity 中
- demo
- How to display a fragment in an activity
- How to add multiple fragments to a layout
- How to detect screen width
- How to control the soft keyboard
preferences
- How to define preferences
- 样式属性
- How to display preferences
- How to get preferences
- How to use preferences
files
- How to download a file from the Internet
- How to parse an XML file
adpaters
- How to create the layout for a list view
- How to use an adapter to display data in a list view
- How to handle events for an adapter
intents
- 显式意图
- 隐式意图
- How to pass data between activities
样式
themes
- res/values/styles.xml
- AndroidManifest.xml
- How to supply different themes for different APIs(theme 应用在整个程序或当前界面)
styles(应用在控件)
-
res/values/styles.xml
-
layout