Android Studio 之 AndroidManifest.xml文件中的android:label属性
2019-08-22 17:38
2859 查看
版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/qq_41811438/article/details/100020247
activity 里面的 android:label 优先级 > application 里面的android:label
android:label属性 用来设定apk的名称以及activity的标题。
举例说明一下,AndroidManifest.xml内容如下:
[code]<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.jimmy.demointent1"> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="GoodMorning" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme"> <activity android:name="MainActivity" android:label="HelloWorld" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> </manifest>
请问生成的apk名称是GoodMorning 还是HelloWorld?
答案是:HelloWorld。
---- The End.
相关文章推荐
- 在AndroidManifest.xml文件中的android:windowSoftInputMode属性使用 | keyboard,squeezing,layout
- 【Android】 AndroidManifest.xml文件全部属性详细解析
- 在AndroidManifest.xml文件中的android:windowSoftInputMode属性使用 | keyboard,squeezing,layout
- android Manifest.xml全局配置文件中根标签中package属性及<original-package>标签注意点
- AndroidManifest.xml 文件属性解析(持续更新)
- AndroidManifest.xml文件中的android:windowSoftInputMode属性使用
- Android AndroidManifest.xml文件的android:supportsRtl属性详解
- Android AndroidManifest.xml文件的android:supportsRtl属性详解
- AndroidManifest.xml文件相关属性名称详解
- 在AndroidManifest.xml文件中的android:windowSoftInputMode属性使用
- Android 获取AndroidManifest.xml文件versionCode,versionName属性
- 在AndroidManifest.xml文件中的android:windowSoftInputMode属性使用 | keyboard,squeezing,layout
- 在AndroidManifest.xml文件中<activity>的android:windowSoftInputMode属性使用
- AndroidManifest.xml文件中Theme属性详解
- Android中项目的AndroidManifest.xml文件的作用及改文件中相关属性的具体介绍
- android studio创建多个activity时在AndroidManifest.xml文件中配置细节
- 在AndroidManifest.xml文件中的android:windowSoftInputMode属性使用 | keyboard,squeezing,layout
- Android AndroidManifest.xml文件的android:supportsRtl属性详解
- Android系统开发 - 扩展Androidmanifest.xml文件中<application>标签的属性
- AndroidManifest.xml详解】Manifest属性之sharedUserId、sharedUserLabel