阅读更多 转自: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运行时所在的进程名,所有程序组件运行在应用程序默认的进程中,这个进程名跟应用程序的包名一致。
   中的元素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的主题样式从属于应用程序, 参见元素的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. gdb 远程调试android进程
  2. Android多进程加载资源失败问题分析:android.content.res.Resour
  3. Android常用的api调用接口
  4. Hierarchy Viewer 帮你分析应用程序UI布局
  5. Android开发:布局分区域设置不同背景色
  6. Android(安卓)新手常见的10个误区(上)
  7. 为 Android(安卓)添加 Java 层服务(三)
  8. android退出应用程序
  9. Android(安卓)开发调试工具的使用总结

随机推荐

  1. 【android】关于退出时关闭“后台”显示
  2. 详解 Android(安卓)的 Activity 组件
  3. Ubuntu 系统上编译Android(安卓)系统
  4. android TextView xml中设置最大行数
  5. android 开发包的离线安装方式
  6. Android(安卓)EditText的inputType属性值
  7. android:windowSoftInputMode属性使用
  8. Android(安卓)—— 第一次安装 Android(
  9. Android(安卓)四大组件之Activity生命周
  10. Android(安卓)Studio apk生成路径