show drawer behind translucent statusbar, jesus fuck

This commit is contained in:
Andrew Dolgov 2015-06-04 14:56:54 +03:00
parent e4afee1014
commit 0112c0cc4f
10 changed files with 33 additions and 4 deletions

View File

View File

@ -1,5 +1,6 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/headlines"
android:fitsSystemWindows="true"
android:layout_width="fill_parent"
android:layout_height="fill_parent">

View File

@ -1,4 +1,5 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:fitsSystemWindows="true"
android:id="@+id/article_images"
android:layout_width="fill_parent"
android:animateLayoutChanges="true"

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="96dp"
android:layout_height="120dp"
android:orientation="vertical"
android:weightSum="1"
android:clickable="false">

View File

@ -8,6 +8,7 @@
android:layout_height="match_parent">
<FrameLayout
android:fitsSystemWindows="true"
android:animateLayoutChanges="true"
android:layout_width="match_parent"
android:layout_height="match_parent">

View File

@ -1,5 +1,6 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/headlines"
android:fitsSystemWindows="true"
android:animateLayoutChanges="true"
android:layout_width="fill_parent"
android:layout_height="fill_parent">

2
org.fox.ttrss/src/main/res/layout/preferences.xml Normal file → Executable file
View File

@ -1,11 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:fitsSystemWindows="true"
android:layout_width="match_parent"
android:layout_height="match_parent">
<FrameLayout
android:id="@+id/preferences_container"
android:background="?android:colorBackground"
android:fitsSystemWindows="true"
android:layout_width="match_parent"
android:layout_height="502dp"

11
org.fox.ttrss/src/main/res/values-v21/style.xml Normal file → Executable file
View File

@ -1,5 +1,14 @@
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<style name="LightTheme.Base" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:windowTranslucentStatus">true</item>
<item name="android:windowBackground">@color/window_background</item>
</style>
<style name="DarkTheme.Base" parent="Theme.AppCompat.NoActionBar">
<item name="android:windowTranslucentStatus">true</item>
<item name="android:windowBackground">@color/window_background_dark</item>
</style>
<style name="DarkDialogTheme" parent="android:Theme.Material.Dialog">
</style>

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<item name="window_background" type="color">#526A8E</item>
<item name="window_background_dark" type="color">#455A64</item>
</resources>

View File

@ -1,6 +1,10 @@
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<style name="LightTheme" parent="Theme.AppCompat.Light.NoActionBar">
<style name="LightTheme.Base" parent="Theme.AppCompat.Light.NoActionBar">
</style>
<style name="LightTheme" parent="LightTheme.Base">
<item name="windowActionModeOverlay">true</item>
<item name="statusBarHintColor">?colorPrimary</item>
@ -48,7 +52,11 @@
<item name="ic_filter_variant">@drawable/ic_filter_variant_dark</item>
</style>
<style name="DarkTheme" parent="Theme.AppCompat.NoActionBar">
<style name="DarkTheme.Base" parent="Theme.AppCompat.NoActionBar">
</style>
<style name="DarkTheme" parent="DarkTheme.Base">
<item name="windowActionModeOverlay">true</item>
<item name="statusBarHintColor">?colorPrimary</item>