summaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authordaniel oeh <daniel.oeh@gmail.com>2014-12-04 22:17:21 +0100
committerdaniel oeh <daniel.oeh@gmail.com>2014-12-19 19:47:38 +0100
commit594dd8cab9fcbe1eea762f055cb2693ffa8dec46 (patch)
treebc56a37b93a1176dbcab72f8c0509374ae370cce /app/src/main/res
parent6bba71469f1eb4d26ba4966f8e1febbe275f1782 (diff)
downloadAntennaPod-594dd8cab9fcbe1eea762f055cb2693ffa8dec46.zip
Use toolbar in MainActivity instead of actionbar
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/main.xml25
1 files changed, 16 insertions, 9 deletions
diff --git a/app/src/main/res/layout/main.xml b/app/src/main/res/layout/main.xml
index 0a7b7ef74..914d5fa6f 100644
--- a/app/src/main/res/layout/main.xml
+++ b/app/src/main/res/layout/main.xml
@@ -1,31 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
-<android.support.v4.widget.DrawerLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
+<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/content"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
+ android:id="@+id/content"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
<FrameLayout
android:id="@+id/playerFragment"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"/>
+ android:layout_alignParentBottom="true" />
+ <android.support.v7.widget.Toolbar
+ android:id="@+id/toolbar"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_alignParentTop="true"
+ android:background="?attr/colorPrimary"
+ android:minHeight="?attr/actionBarSize"/>
<FrameLayout
android:id="@+id/main_view"
android:layout_width="match_parent"
android:layout_height="0px"
- android:layout_alignParentTop="true"
- android:layout_above="@id/playerFragment"/>
+ android:layout_above="@id/playerFragment"
+ android:layout_below="@id/toolbar"
+ android:foreground="?android:windowContentOverlay" />
</RelativeLayout>
- <include layout="@layout/nav_list"/>
+ <include layout="@layout/nav_list" />
</android.support.v4.widget.DrawerLayout> \ No newline at end of file