[英]What is wrong with my androidmanifest? launcher icon label does not appear
當我運行我的簡單應用程序時,應用程序標簽不會顯示在啟動器上。 我盡力解決了所有問題,但是沒有什么不同。 這是我的manifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.marc.torch"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_torch"
android:label="@string/app_name"
android:theme="@style/FullscreenTheme" >
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
這是我的字符串文件:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Torch</string>
</resources>
</manifest>
您正在使用“ FullscreenTheme”。 建議您如果要顯示標簽,然后更改主題,請轉到樣式並更改主題。
您是否檢查過string.xml文件? app_name必須在那定義。
1)您可能在此FullscreenTheme上出現拼寫錯誤或大寫字母錯誤
2)在res-> values-> strins.xml中檢查您的FullscreenTheme(樣式)
3)您可能會發現與此類似的東西。
<style name="AppFullScreenTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:windowNoTitle">true</item>
<item name="android:windowActionBar">true</item>
<item name="android:windowFullscreen">true</item>
<item name="android:windowContentOverlay">@null</item>
</style>
4)從父級刪除NoActionBar。
5)只需更改那里的值即可根據需要更改屏幕的值。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.