转自:http://hi.baidu.com/%C1%E3%CF%C2%C1%E3%C1%E3%D2%BB%B6%C8/blog/item/d6eca5ac9fa9cd044b36d60a.html
activity属性设置大全
android:allowTaskReparenting=["true" | "false"]
是否允许activity更换从属的任务,比如从短信息任务 切换到浏览器任务。

android:alwaysRetainTaskState=["true" | "false"]
是否保留状态不变, 比如切换回home, 再从新打开, activity处于最后的状态

android:clearTaskOnLaunch=["true"" | "false"]
比如 P 是 activity, Q 是被P 触发的 activity, 然后返回Home, 从新启动 P, 是否显示 Q

android:configChanges=[one or more of: "mcc" "mnc" "locale" "touchscreen" "keyboard" "keyboardHidden" "navigation" "orientation" "fontScale"]
当配置list发生修改时, 是否调用 onConfigurationChanged() 方法 比如 "locale|navigation|orientation".
android:enabled=["true" | "false"]
activity 是否可以被实例化,

android:excludeFromRecents=["true" | "false"]
是否可被显示在最近打开的activity列表里

android:exported=["true" | "false"]
是否允许activity被其它程序调用

android:finishOnTaskLaunch=["true" | "false"]
是否关闭已打开的activity当用户重新启动这个任务的时候

android:icon="drawable resource"
android:label="string resource"

android:launchMode=["multiple" | "singleTop" |"singleTask" | "singleInstance"]
activity启动方式, "standard" "singleTop" "singleTask" "singleInstance" 其中前两个为一组, 后两个为一组

android:multiprocess=["true" | "false"]
android:name="string"
android:noHistory=["true" | "false"]
是否需要移除这个activity当用户切换到其他屏幕时。 这个属性是 API level 3 中引入的
android:permission="string"

android:process="string"
一个activity运行时所在的进程名,所有程序组件运行在应用程序默认的进程中,这个进程名跟应用程序的包名一致。
<application>中的元素process属性能够为所有组件设定一个新的默认值。但是任何组件都可以覆盖这个默认值,允许你
将你的程序放在多进程中运行。 如果这个属性被分配的名字以:开头,当这个activity运行时,一个新的专属于这个程序的
进程将会被创建。如果这个进程名以小写字母开头,这个activity将会运行在全局的进程中,被它的许可所提供。

android:screenOrientation=["unspecified" | "user" | "behind" |"landscape" | "portrait" | "sensor" | "nonsensor"]
activity显示的模式, "unspecified" 默认值 "landscape" 风景画模式,宽度比高度大一些 "portrait" 肖像模式, 高度比
宽度大。 "user" 用户的设置 "behind" "sensor" "nosensor"

android:stateNotNeeded=["true" | "false"]
是否 activity被销毁和成功重启并不保存状态

android:taskAffinity="string"
activity的亲属关系, 默认情况同一个应用程序下的activity有相同的关系

android:theme="resource or theme"
activity的样式主题, 如果没有设置,则activity的主题样式从属于应用程序, 参见<application>元素的theme属性

android:windowSoftInputMode=[one or more of: "stateUnspecified""stateUnchanged" "stateHidden" "stateAlwaysHidden"
"stateVisible""stateAlwaysVisible""adjustUnspecified""adjustResize" "adjustPan"] >
activity主窗口与软键盘的交互模式, 自从API level 3 被引入

•android:theme="@android:style/Theme.Dialog" 将一个Activity显示为能话框模式
•android:theme="@android:style/Theme.NoTitleBar" 不显示应用程序标题栏
•android:theme="@android:style/Theme.NoTitleBar.Fullscreen" 不显示应用程序标题栏,并全屏
•android:theme="Theme.Light" 背景为白色
•android:theme="Theme.Light.NoTitleBar" 白色背景并无标题栏
•android:theme="Theme.Light.NoTitleBar.Fullscreen" 白色背景,无标题栏,全屏
•android:theme="Theme.Black" 背景黑色
•android:theme="Theme.Black.NoTitleBar" 黑色背景并无标题栏
•android:theme="Theme.Black.NoTitleBar.Fullscreen" 黑色背景,无标题栏,全屏
•android:theme="Theme.Wallpaper" 用系统桌面为应用程序背景
•android:theme="Theme.Wallpaper.NoTitleBar" 用系统桌面为应用程序背景,且无标题栏
•android:theme="Theme.Wallpaper.NoTitleBar.Fullscreen" 用系统桌面为应用程序背景,无标题栏,全屏
•android:theme="Translucent"
•android:theme="Theme.Translucent.NoTitleBar"
•android:theme="Theme.Translucent.NoTitleBar.Fullscreen"
•android:theme="Theme.Panel"
•android:theme="Theme.Light.Panel"


更多相关文章

  1. android基础
  2. android 下改变默认的checkbox的 选中 和被选中 图片
  3. Android(安卓)adb setuid提权漏洞的分析
  4. Android: Android(安卓)Architecture
  5. Android(安卓)应用程序的结构
  6. 2011.07.12(2)——— android Messenger 跨进程通信
  7. android IPC机制
  8. 去掉Button的默认背景
  9. Android(安卓)Button Selector

随机推荐

  1. Android设备的唯一ID
  2. 简单聊一下Android音频通路的切换
  3. Unity调用Android原生Java代码以及Unity
  4. (1) Android中Binder调用流程 --- 匿名和实
  5. 【读书笔记】【Android 开发艺术探索】第
  6. android实现View的渐隐渐现功能
  7. 基于移动平台的多媒体框架——移植Live55
  8. Android设备到底侵犯了微软的什么专利
  9. 漫谈Android数据缓存、数据序列化和Inten
  10. Dagger2 在 Android 项目的正确使用方式