Transparent status bar
This commit is contained in:
parent
be9c1ce6f4
commit
3fc830c6f1
2 changed files with 47 additions and 39 deletions
|
@ -1,48 +1,55 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout
|
||||
<android.support.design.widget.CoordinatorLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/adView"
|
||||
android:fitsSystemWindows="true"
|
||||
tools:context=".ui.activity.FilePickerActivity">
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:background="@color/colorAdBackground">
|
||||
</FrameLayout>
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<android.support.design.widget.AppBarLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/appbar"
|
||||
android:layout_alignParentTop="true"
|
||||
android:theme="@style/AppTheme.AppBarOverlay">
|
||||
<FrameLayout
|
||||
android:id="@+id/adView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:background="@color/colorAdBackground">
|
||||
</FrameLayout>
|
||||
|
||||
<include layout="@layout/toolbar" />
|
||||
<android.support.design.widget.AppBarLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/appbar"
|
||||
android:layout_alignParentTop="true"
|
||||
android:theme="@style/AppTheme.AppBarOverlay">
|
||||
|
||||
</android.support.design.widget.AppBarLayout>
|
||||
<include layout="@layout/toolbar" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/empty_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_below="@id/appbar"
|
||||
android:layout_above="@id/adView"
|
||||
android:gravity="center"
|
||||
android:includeFontPadding="false"
|
||||
android:layout_margin="@dimen/activity_horizontal_margin"
|
||||
android:visibility="gone"
|
||||
android:textStyle="bold"
|
||||
android:text="@string/permissions_storage_error_info" />
|
||||
</android.support.design.widget.AppBarLayout>
|
||||
|
||||
<android.support.v7.widget.RecyclerView
|
||||
android:id="@+id/list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_above="@id/adView"
|
||||
android:layout_below="@id/appbar"
|
||||
android:scrollbars="vertical"
|
||||
/>
|
||||
</RelativeLayout>
|
||||
<TextView
|
||||
android:id="@+id/empty_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_below="@id/appbar"
|
||||
android:layout_above="@id/adView"
|
||||
android:gravity="center"
|
||||
android:includeFontPadding="false"
|
||||
android:layout_margin="@dimen/activity_horizontal_margin"
|
||||
android:visibility="gone"
|
||||
android:textStyle="bold"
|
||||
android:text="@string/permissions_storage_error_info" />
|
||||
|
||||
<android.support.v7.widget.RecyclerView
|
||||
android:id="@+id/list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_above="@id/adView"
|
||||
android:layout_below="@id/appbar"
|
||||
android:scrollbars="vertical"
|
||||
/>
|
||||
</RelativeLayout>
|
||||
</android.support.design.widget.CoordinatorLayout>
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
<style name="AppTheme" parent="Base.AppTheme">
|
||||
<item name="android:navigationBarColor">@color/colorPrimaryDark</item>
|
||||
<item name="android:statusBarColor">@android:color/transparent</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
Loading…
Add table
Reference in a new issue