In my Application I want on all Activities except Activity with material design sliding tabs to have ActionBar
. If I want to make material design sliding tabs I need in my style to use:
parent="Theme.AppCompat.Light.NoActionBar"
but with this code I won't have ActionBar
on other Activities which I want....
styles.xml
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
</style>
</resources>
tool_bar.xml
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.Toolbar
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:background="@color/ColorPrimary"
android:elevation="2dp"
android:theme="@style/Base.ThemeOverlay.AppCompat.Dark"
xmlns:android="http://schemas.android.com/apk/res/android" />
So should I create two styles in resources or what?