gpt4 book ai didi

android - 为什么浏览应用程序屏幕上没有显示正确的应用程序名称?

转载 作者:行者123 更新时间:2023-11-30 02:29:45 26 4
gpt4 key购买 nike

我正在使用 Android Studio 1.0。这是我的 list 文件

<application
android:allowBackup="true"
android:label="@string/app_name"
android:icon="@drawable/ic_launcher"
android:theme="@style/AppTheme"
>
<activity
android:name=".MainActivity"
android:label="@string/title_activity_main">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
And inside strings.xml
<string name="app_name">Demo app</string>

我要关注的属性是android:label来自 http://developer.android.com/guide/topics/manifest/application-element.html ,我读到应用程序的 android:label 是“整个应用程序的用户可读标签”。现在我假设,这是用户在浏览应用程序时应该看到的名称。然而,当我在我的模拟 GenyMotion 4.4.4 Nexus 设备上安装应用程序时,这是我看到的 enter image description here

为什么标签显示 MainActivity 而不是我指定的应用标签/名称?根据我的阅读,这应该是用于设置标签名称的正确属性。

最佳答案

是 intent-filter 描述了哪些 Activity 在应用程序托盘中有启动器图标,因此它是您在 Activity 上指定的标签决定了它在那里的显示方式。应用程序的标签将包命名为一个整体,而不是获取启动器图标的特定入口点。

关于android - 为什么浏览应用程序屏幕上没有显示正确的应用程序名称?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27467044/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com