清单文件问题

时间:2018-10-06 12:14:53

标签: android android-layout android-manifest

嗯,我有一个正在构建的小应用程序。所以我有10个活动,其中一个有6个TextView,它们将打开另一个活动,当我尝试回到主要活动的子活动时,我没有后座。所以我想把它们的后退箭头。我给 这是我遇到的问题。 这是我的manifest.xlm文件

<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=".CenturyActivity"
        android:label="Centure Auto Parts"
        android:parentActivityName=".MainActivity" />

    <meta-data
        android:name="android.support.PARENT_ACTIVITY"
        android:value=".MainActivity" />

    <activity
        android:name=".AlshamaliActivity"
        android:label="Al Shamali Auto Parts"
        android:parentActivityName=".MainActivity" />

    <meta-data
        android:name="android.support.PARENT_ACTIVITY"
        android:value=".MainActivity" />

    <activity
        android:name=".IndusActivity"
        android:label="Indus Auto Parts"
        android:parentActivityName=".MainActivity" />

    <meta-data
        android:name="android.support.PARENT_ACTIVITY"
        android:value=".MainActivity" />

    <activity
        android:name=".MayadActivity"
        android:label="Al Mayad Auto Parts"
        android:parentActivityName=".MainActivity" />

    <meta-data
        android:name="android.support.PARENT_ACTIVITY"
        android:value=".MainActivity" />

    <activity
        android:name=".ImparialActivity"
        android:label="Imperial Auto Parts"
        android:parentActivityName=".MainActivity" />

    <meta-data
        android:name="android.support.PARENT_ACTIVITY"
        android:value=".MainActivity" />

    <activity
        android:name=".AisinActivity"
        android:label="AISIN Gallery Auto Parts"
        android:parentActivityName=".MainActivity" />

    <meta-data
        android:name="android.support.PARENT_ACTIVITY"
        android:value=".MainActivity" />

    <activity
        android:name=".SpdcActivity"
        android:label="SPDC Warehouse"
        android:parentActivityName=".MainActivity" />

    <meta-data
        android:name="android.support.PARENT_ACTIVITY"
        android:value=".MainActivity" />

    <activity
        android:name=".ImwhouseActivity"
        android:label="Imperial Warehouse"
        android:parentActivityName=".MainActivity" />

    <meta-data
        android:name="android.support.PARENT_ACTIVITY"
        android:value=".MainActivity" />

    <activity
        android:name=".WshamaliActivity"
        android:label="Al Shamali Warehouse"
        android:parentActivityName=".MainActivity" />

    <meta-data
        android:name="android.support.PARENT_ACTIVITY"
        android:value=".MainActivity" />

    **<activity**
        android:name=".HeadOfficeActivity"
        android:label="Head Office"
        android:parentActivityName=".MainActivity">
        <meta-data
            android:name="android.support.PARENT_ACTIVITY"
            android:value=".MainActivity" />
    </activity>
    <activity
        android:name=".HrActivity"
        android:label="HR Team"
        android:parentActivityName=".HeadOfficeActivity"/>

        <meta-data
            android:name="android.support.PARENT_ACTIVITY"
            android:value=".HeadOfficeActivity"/>
    <activity
        android:name=".SalesActivity"
        android:label="Sales Team"
        android:parentActivityName=".HeadOfficeActivity"/>
    <meta-data
        android:name="android.support.PARENT_ACTIVITY"
        android:value=".HeadOfficeActivity"/>
    <activity
        android:name=".PurchActivity"
        android:label="Purchase Team"
        android:parentActivityName=".HeadOfficeActivity"/>
    <meta-data
        android:name="android.support.PARENT_ACTIVITY"
        android:value=".HeadOfficeActivity"/>
    <activity
        android:name=".AccountsActivity"
        android:label="Accounts Team"
        android:parentActivityName=".HeadOfficeActivity"/>

    <meta-data
        android:name="android.support.PARENT_ACTIVITY"
        android:value=".HeadOfficeActivity"/>
    <activity
        android:name=".ItActivity"
        android:label="IT Team"
        android:parentActivityName=".HeadOfficeActivity">
    <meta-data
        android:name="android.support.PARENT_ACTIVITY"
        android:value=".HeadOfficeActivity"/>
</activity>
</application>

0 个答案:

没有答案