简体   繁体   English

设备上的Android应用名称

[英]Android app name on device

I thought that 我认为

android:label="@string/app_name"

in <application> was needed to have the appname displayed on the device below the icon. 需要在<application>中将图标名称显示在设备上。 But all I get is blanks below the icon. 但是我得到的只是图标下方的空白。 What am I missing? 我想念什么?

You should use this feature in each Activity tag in your manifest. 您应该在清单中的每个“活动”标签中使用此功能。

Example: 例:

<activity
        android:name="com.packagename.myActivity"
        android:label="@string/app_name" >
    </activity>

In strings.xml app_name value may be empty or strings.xml中, app_name的值可以为空或

you have to declare 你必须声明

android:label="@string/app_name"

in activity tag also 活动标签中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM