浏览代码

Merge pull request #213 from nextcloud/drawerHeaderBackground

background image for background in top of sidebar
Tobias Kaminsky 8 年之前
父节点
当前提交
fb44d1d588
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 二进制
      res/drawable-xxxhdpi/background.jpg
  2. 3 3
      res/layout/drawer_header.xml

二进制
res/drawable-xxxhdpi/background.jpg


+ 3 - 3
res/layout/drawer_header.xml

@@ -19,15 +19,15 @@
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
               android:layout_width="match_parent"
               android:layout_height="@dimen/nav_drawer_header_height"
-              android:background="@color/drawer_header_color">
+              android:background="@drawable/background"
+              android:fitsSystemWindows="true">
 
     <RelativeLayout
         android:id="@+id/drawer_active_user"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:layout_gravity="bottom"
-        android:padding="@dimen/standard_padding"
-        >
+        android:padding="@dimen/standard_padding">
 
         <FrameLayout
             android:id="@+id/drawer_user_avatars"