安卓的manifest.xml [英] Android 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屋!