安卓的manifest.xml [英] Android manifest.xml

查看:98
本文介绍了安卓的manifest.xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从谷歌Android开发者网站上的标签示例(http://developer.android.com/resources/tutorials/views/hello-tabwidget.html),但我被困在步骤2中。

I'm working on the Tabs example from Google Android Developers site (http://developer.android.com/resources/tutorials/views/hello-tabwidget.html) but I'm stuck in step 2.

在步骤2的结尾处写着复制这为三个活动,并添加相应的标签到Android清单文件

At the very end of step 2 says "Duplicate this for each of the three activities, and add the corresponding tags to the Android Manifest file"

究竟我是否需要添加到AndroidManifest.xml中?

What exactly do I have to add to the AndroidManifest.xml?

感谢

推荐答案

这是你的清单文件如何应该是:

This is how your Manifest file should be:

                                                                                  

    <activity android:name=".ArtistsActivity"
              android:label="@string/app_name" 
              android:theme="@android:style/Theme.NoTitleBar">
    </activity>

    <activity android:name=".SongsActivity"
              android:label="@string/app_name" 
              android:theme="@android:style/Theme.NoTitleBar">
    </activity>

    <activity android:name=".AlbumsActivity"
              android:label="@string/app_name" 
              android:theme="@android:style/Theme.NoTitleBar">
    </activity>

</application>

这将工作的肯定!

这篇关于安卓的manifest.xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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