summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFup Duck <fupduck@sacknagel.com>2017-12-12 20:23:11 +0100
committerFup Duck <fupduck@sacknagel.com>2017-12-12 20:23:11 +0100
commit1312c0dab26508f41246ea925176709fffeb465c (patch)
treeaf44a9c6e48c6d0cc144c6447b7861f0904f7d01
parent9a35f971f917ef4141923d50deb25fa0d2f9b7dd (diff)
make downward compatible
-rw-r--r--app/src/main/res/layout/drawer_main.xml37
1 files changed, 27 insertions, 10 deletions
diff --git a/app/src/main/res/layout/drawer_main.xml b/app/src/main/res/layout/drawer_main.xml
index b2254d2a..e1f7b15c 100644
--- a/app/src/main/res/layout/drawer_main.xml
+++ b/app/src/main/res/layout/drawer_main.xml
@@ -1,23 +1,40 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="@color/colorBackground"
tools:context="se.leap.bitmaskclient.NavigationDrawerFragment">
- <ImageView android:id="@+id/imageView"
+ <FrameLayout
android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@drawable/ic_colorsquare"
- android:src="@drawable/mask" />
+ android:layout_height="wrap_content">
- <ListView android:id="@+id/accountList"
+ <android.support.v7.widget.AppCompatImageView
+ android:id="@+id/background"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:adjustViewBounds="false"
+ android:cropToPadding="false"
+ android:scaleType="fitStart"
+ app:srcCompat="@drawable/ic_colorsquare" />
+
+ <android.support.v7.widget.AppCompatImageView
+ android:id="@+id/mask"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_centerHorizontal="true"
+ android:layout_centerInParent="true"
+ android:layout_centerVertical="true"
+ app:srcCompat="@drawable/mask" />
+
+
+ </FrameLayout>
+
+ <ListView
+ android:id="@+id/accountList"
android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:choiceMode="singleChoice"
- android:divider="@android:color/transparent"
- android:dividerHeight="0dp">
+ android:layout_height="match_parent" />
- </ListView>
</LinearLayout> \ No newline at end of file