属性 | 属性值 | 解释 |
---|---|---|
变量类型 | ||
android:icon= | “drawable resource” | 图片 |
android:label= | “string resource” | 名字 |
android:name= | “string” | class全名 |
android:parentActivityName= | “string” | |
android:permission= | “string” | |
android:process= | “string” | 自定义进程 |
android:taskAffinity= | “string” | |
android:theme= | “resource or theme” | 主题 |
布尔类型 | ||
android:allowTaskReparenting= | “true”/”false” | |
android:alwaysRetainTaskState= | “true”/”false” | |
android:clearTaskOnLaunch= | “true”/”false” | |
android:enabled= | “true”/”false” | |
android:excludeFromRecents= | “true”/”false” | |
android:exported= | “true”/”false” | |
android:finishOnTaskLaunch= | “true”/”false” | |
android:hardwareAccelerated= | “true”/”false” | activity是否能被硬件加速渲染,默认false |
android:multiprocess= | “true”/”false” | |
android:noHistory= | “true”/”false” | |
android:stateNotNeeded= | “true”/”false” | |
常量类型 | ||
android:uiOptions= | ||
“none” | ||
“splitActionBarWhenNarrow” | ||
android:launchMode= | ||
“multiple” | ||
“singleTop” | ||
“singleTask” | ||
“singleInstance” | ||
android:configChanges= | ||
“mcc” | ||
“mnc” | ||
“locale” | ||
“touchscreen” | ||
“keyboard” | ||
“keyboardHidden” | ||
“navigation” | ||
“screenLayout” | ||
“fontScale” | ||
“uiMode” | ||
“orientation” | ||
“screenSize” | ||
“smallestScreenSize” | ||
android:screenOrientation= | ||
“unspecified” | ||
“behind” | ||
“landscape” | ||
“portrait” | ||
“reverseLandscape” | ||
“reversePortrait” | ||
“sensorLandscape” | ||
“sensorPortrait” | ||
“userLandscape” | ||
“userPortrait” | ||
“sensor” | ||
“fullSensor” | ||
“nosensor” | ||
“user” | ||
“fullUser” | ||
“locked” | ||
android:windowSoftInputMode= | ||
“stateUnspecified” | ||
“stateUnchanged” | ||
“stateHidden” | ||
“stateAlwaysHidden” | ||
“stateVisible” | ||
“stateAlwaysVisible” | ||
“adjustUnspecified” | ||
“adjustResize” | ||
“adjustPan” |
Activity的xml配置
最新推荐文章于 2024-08-08 23:54:00 发布