Android 开发 修改app应用的名字和图标

找到应用的manifests 并,打开

app->manifests->AndroidManifests.xml

找到application中最前面的代码如下

 		android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">

①修改图标
其中 icon就是图标,修改你所需要添加的图片的路径即可
例如:

android:icon="@drawable/welcome"

②修改app应用显示的名字
label为你要显示的app应用的名字
方法一直接修改(不推荐)

android:label="聊天系统"

方法二
修改string/app_name下的名字即全局的,找到app_name路径(先光标放在app_name上,快捷键ctrl+b自动找到相应的位置)

res->values->string
<resources>
    <string name="app_name">Chating</string>
</resources>

修改如下

<string name="app_name">聊天系统</string>

运行模拟器可以看到相应的变化

猜你喜欢

转载自blog.csdn.net/qq_41767945/article/details/91820200