应用程序名称在哪里显示? Android / MonoAndroid

时间:2011-07-27 22:35:55

标签: android xamarin.android

我正在经历this tutorial ,我对此部分感到有点困惑

Inside the Resources/Values/ folder, open Strings.xml. This is where you should save all default text strings for your user interface. The default template for this file starts with two strings, hello and app_name. Revise hello to something else. Perhaps "Hello, Android! I am a string resource!" The entire file should now look like this:
view plainprint?

    <?xml version="1.0" encoding="utf-8"?>  
    <resources>  
        <string name="Hello">Hello, Android! I am a string resource!</string>  
        <string name="ApplicationName">Hello, Android</string>  
    </resources>  

我原以为它会显示在应用程序菜单中(你去哪里选择你想要的应用程序)

然而,情况似乎并非如此。我不确定代码标签是覆盖它还是什么

[Activity(Label = "Test Test", MainLauncher = true, Icon = "@drawable/icon")]
    public class Activity1 : Activity
    {

        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            SetContentView(Resource.Layout.Main); 
        }
    }

我看到&#34;测试测试&#34;

2 个答案:

答案 0 :(得分:0)

标签是您管理应用程序或应用程序柜中的标签。应用程序名称是可选的。

“实现此程序包的整体android.app.Application的类的可选名称”

是Eclipse所说的。

答案 1 :(得分:0)

当用户安装您的应用程序时,由程序包安装程序显示。