activity属性设置大全 

android:alwaysRetainTaskState=["true" | "false"]              android:clearTaskOnLaunch=["true" | "false"]              android:configChanges=["mcc", "mnc", "locale",                                     "touchscreen", "keyboard", "keyboardHidden",                                     "navigation", "screenLayout", "fontScale", "uiMode",                                     "orientation", "screenSize", "smallestScreenSize"]              android:enabled=["true" | "false"]              android:excludeFromRecents=["true" | "false"]              android:exported=["true" | "false"]              android:finishOnTaskLaunch=["true" | "false"]              android:hardwareAccelerated=["true" | "false"]              android:icon="drawable resource"              android:label="string resource"              android:launchMode=["multiple" | "singleTop" |                                  "singleTask" | "singleInstance"]              android:multiprocess=["true" | "false"]              android:name="string"              android:noHistory=["true" | "false"]                android:permission="string"              android:process="string"              android:screenOrientation=["unspecified" | "user" | "behind" |                                         "landscape" | "portrait" |                                         "reverseLandscape" | "reversePortrait" |                                         "sensorLandscape" | "sensorPortrait" |                                         "sensor" | "fullSensor" | "nosensor"]              android:stateNotNeeded=["true" | "false"]              android:taskAffinity="string"              android:theme="resource or theme"              android:uiOptions=["none" | "splitActionBarWhenNarrow"]              android:windowSoftInputMode=["stateUnspecified",                                           "stateUnchanged", "stateHidden",                                           "stateAlwaysHidden", "stateVisible",                                           "stateAlwaysVisible", "adjustUnspecified",                                           "adjustResize", "adjustPan"] >           . . .    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运行时所在的进程名,所有程序组件运行在应用程序默认的进程中,这个进程名跟应用程序的包名一致。 中的元素process属性能够为所有组件设定一个新的默认值。但是任何组件都可以覆盖这个默认值,允许你 将你的程序放在多进程中运行。 如果这个属性被分配的名字以:开头,当这个activity运行时,一个新的专属于这个程序的 进程将会被创建。如果这个进程名以小写字母开头,这个activity将会运行在全局的进程中,被它的许可所提供。 android:screenOrientation=["unspecified" | "user" | "behind" |"landscape" | "portrait" | "sensor" | "nonsensor"] activity显示的模式, "unspecified" 默认值 "landscape" 风景画模式,宽度比高度大一些 "portrait" 肖像模式, 高度比 宽度大。 "user" 用户的设置 "behind" "sensor" "nosensor",其它几个属性3.0后被引入。 android:stateNotNeeded=["true" | "false"] 是否 activity被销毁和成功重启并不保存状态 android:taskAffinity="string" activity的亲属关系, 默认情况同一个应用程序下的activity有相同的关系 android:theme="resource or theme" activity的样式主题, 如果没有设置,则activity的主题样式从属于应用程序, 参见元素的theme属性 android:windowSoftInputMode=[one or more of: "stateUnspecified""stateUnchanged" "stateHidden" "stateAlwaysHidden" "stateVisible""stateAlwaysVisible""adjustUnspecified""adjustResize" "adjustPan"] > activity主窗口与软键盘的交互模式, 自从API level 3 被引入。 


更多相关文章

  1. android app content
  2. Android快速上手
  3. Android(安卓)系统级应用守护进程
  4. android2.x中android:layout_marginRight不起作用的解决办法
  5. 分割线
  6. android manifest.xml
  7. AndroidManifest.xml文件详解(data)
  8. 设置Android应用程序横竖屏显示
  9. 线性布局的常用属性

随机推荐

  1. Android(安卓)-- NDK开发入门
  2. listview自定义背景以及item自定义背景
  3. Android 开发笔记 动画效果 --Animation
  4. Android Logcat 直接输出JSON格式的数据
  5. Android权威编程指南读书笔记(1-2章)
  6. 修改Android emulator的IMEI
  7. pull解析
  8. android获取手机的国家码
  9. [Android]Ubuntu 10.10 HTC G11真机调试
  10. 高通android10.0默认赋予第三方apk权限