We need to modify the manifest file by giving different themes to Navigation drawer activity and Upnavigation activity.
below is the Navigation drawer with adding theme to application
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".SlidingActivity"
android:label="@string/app_name"
android:theme="@android:style/Theme.Holo.Light" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
</application>
Below is up navigation and give parent activity and give the theme
<activity
android:name=".SignupActivity"
android:label="@string/app_name"
android:parentActivityName=".SlidingActivity"
android:theme="@android:style/Theme.Holo.Light" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
below is the Navigation drawer with adding theme to application
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".SlidingActivity"
android:label="@string/app_name"
android:theme="@android:style/Theme.Holo.Light" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
</application>
Below is up navigation and give parent activity and give the theme
<activity
android:name=".SignupActivity"
android:label="@string/app_name"
android:parentActivityName=".SlidingActivity"
android:theme="@android:style/Theme.Holo.Light" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
No comments:
Post a Comment