Translucent navbar and toolbar.

parent e81662b7
......@@ -8,6 +8,7 @@ import android.os.AsyncTask;
import android.os.Build;
import android.os.Bundle;
import android.provider.MediaStore;
import android.support.annotation.ColorInt;
import android.support.annotation.NonNull;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
......
......@@ -13,6 +13,7 @@
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_marginTop="24dp"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
......
......@@ -13,6 +13,7 @@
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_marginTop="24dp"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
......
......@@ -6,25 +6,19 @@
android:layout_height="match_parent"
tools:context="com.systemallica.gallery.ImageActivity">
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_marginTop="24dp"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:popupTheme="@style/AppTheme.PopupOverlay" />
</android.support.design.widget.AppBarLayout>
<android.support.v4.view.ViewPager
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/pager"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_marginTop="24dp"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="@color/translucent_background"
app:theme="@style/ToolBarStyle"
app:popupTheme="@style/AppTheme.PopupOverlay"/>
</android.support.design.widget.CoordinatorLayout>
......@@ -14,6 +14,7 @@
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_marginTop="24dp"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
......
......@@ -7,4 +7,5 @@
<color name="text_white">#FFFFFF</color>
<color name="text_grey">#d3d3d3</color>
<color name="app_background">#78909C</color>
<color name="translucent_background">#33000000</color>
</resources>
......@@ -7,6 +7,7 @@
<item name="colorPrimaryDark">@color/app_primary_dark</item>
<item name="colorAccent">@color/app_color_accent</item>
<item name="android:windowBackground">@color/app_background</item>
<item name="android:windowTranslucentNavigation">true</item>
</style>
<style name="AppTheme.NoActionBar">
......@@ -18,4 +19,10 @@
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
<style name="ToolBarStyle">
<item name="android:textColorPrimary">@android:color/white</item>
<item name="android:textColorSecondary">@android:color/white</item>
<item name="actionMenuTextColor">@android:color/white</item>
</style>
</resources>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment