2017-08-31 4 views
1

Der Titel der App wurde nach dem Hinzufügen der seitlichen Navigationsleiste ausgeblendet. Dies ist AndroidManifest Datei:Name der Android-App wird nicht in allen Aktivitäten angezeigt

<?xml version="1.0" encoding="utf-8"?> 

<application 
    android:allowBackup="true" 
    android:icon="@mipmap/ic_launcher" 
    android:label="@string/app_name" 
    android:roundIcon="@mipmap/ic_launcher_round" 
    android:supportsRtl="true" 
    android:theme="@style/AppTheme"> 
    <activity android:name=".MainActivity"> 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 

      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity> 
    <activity android:name=".QRCode" /> 
</application> 

dieses Problem Bitte lösen ... Grüße

+0

Können Sie einen Screenshot bereitstellen? –

Antwort

0

Anwendung Namen der App hinzufügen:

<application android:name="xxxx" 
    android:label="@string/xxx" 
    android:icon="@drawable/xxx"> 

Nach Dies, die Bes t addieren Namen Aktivitäten:

<activity android:name="ApiDemos"> 
    <intent-filter> 
     <action android:name="android.intent.action.xxxx" /> 
     <category android:name="android.intent.category.DEFAULT" /> 
     <category android:name="android.intent.category.LAUNCHER" /> 
    </intent-filter> 
</activity> 
0

Sie können auch Titel der Aktivität durch das Verfahren setTitle("Activity name") im onCreate() -Methode der Aktivität genannt hinzuzufügen.

Verwandte Themen