如何更改 Android 应用程序的名称? [英] How to change an Android app's name?

查看:46
本文介绍了如何更改 Android 应用程序的名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在不创建新项目的情况下更改应用程序的名称(启动器应用程序标签)?

Is there a way to change the name (Launcher App Label) of an app without creating a new project?

注意:应用程序名称和手机主屏幕启动器图标上显示的标签可能不同.

Note: Name of the App and The label shown on the Launcher Icon on Home Screen on Mobiles can be different.

示例:在我的移动应用程序所在的主页上,我有一个图标和名称 Foo,但我想将名称更改为 Bar.我可以这样做吗?

Example: On the home page in my Mobile where my apps are, I have an icon and the name Foo, but I want to change the name to Bar. Can I do this?

推荐答案

是的,你可以.通过更改 AndroidManifest.xml 中应用程序节点中的 android:label 字段.

Yes you can. By changing the android:label field in your application node in AndroidManifest.xml.

注意:如果您添加了启动画面并添加了

Note: If you have added a Splash Screen and added

 <activity
    android:name=".SplashActivity"
    android:label="@string/title_activity_splash_screen"
    android:theme="@style/AppTheme">
    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
</activity>

到您的启动画面,然后启动器图标名称将更改为您的启动画面类名称的名称.

to your Splash Screen, then the Launcher Icon name will be changed to the name of your Splash Screen Class name.

请确保您更改标签:

android:label="@string/title_activity_splash_screen"

在您的strings.xml 文件中的启动画面活动中.它可以在 Res -> 中找到.值 ->字符串.xml

in your Splash Screen activity in your strings.xml file. It can be found in Res -> Values -> strings.xml

此处查看更多信息.

这篇关于如何更改 Android 应用程序的名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆