changed alignment of drawer's content according to jan's suggestions
authorAndy Scherzinger <info@andy-scherzinger.de>
Tue, 4 Aug 2015 17:02:36 +0000 (19:02 +0200)
committerAndy Scherzinger <info@andy-scherzinger.de>
Tue, 4 Aug 2015 17:02:36 +0000 (19:02 +0200)
res/drawable-hdpi/ic_account_circle.png [new file with mode: 0644]
res/drawable-xhdpi/ic_account_circle.png [new file with mode: 0644]
res/drawable-xxhdpi/ic_account_circle.png [new file with mode: 0644]
res/layout/drawer.xml

diff --git a/res/drawable-hdpi/ic_account_circle.png b/res/drawable-hdpi/ic_account_circle.png
new file mode 100644 (file)
index 0000000..b2bdc2a
Binary files /dev/null and b/res/drawable-hdpi/ic_account_circle.png differ
diff --git a/res/drawable-xhdpi/ic_account_circle.png b/res/drawable-xhdpi/ic_account_circle.png
new file mode 100644 (file)
index 0000000..246e0c8
Binary files /dev/null and b/res/drawable-xhdpi/ic_account_circle.png differ
diff --git a/res/drawable-xxhdpi/ic_account_circle.png b/res/drawable-xxhdpi/ic_account_circle.png
new file mode 100644 (file)
index 0000000..bfd4632
Binary files /dev/null and b/res/drawable-xxhdpi/ic_account_circle.png differ
index 777be3d..f769fb2 100644 (file)
             android:dividerHeight="1dp"
             android:paddingTop="100dp" />
 
             android:dividerHeight="1dp"
             android:paddingTop="100dp" />
 
-        <TextView
-            android:id="@+id/drawer_username"
+        <LinearLayout
             android:layout_width="fill_parent"
             android:layout_height="100dp"
             android:layout_width="fill_parent"
             android:layout_height="100dp"
-            android:layout_alignParentTop="true"
-            android:layout_centerHorizontal="true"
-            android:background="@color/owncloud_blue_accent"
-            android:gravity="bottom"
-            android:orientation="vertical"
-            android:text="@string/app_name"
-            android:textColor="#FFF"
-            android:textStyle="bold"
-            android:padding="10dp"
-            android:textSize="24sp" />
+            android:paddingTop="16dp"
+            android:paddingBottom="16dp"
+            android:background="@color/owncloud_blue_accent">
+
+            <ImageView
+                android:id="@+id/itemIcon"
+                android:layout_width="24sp"
+                android:layout_height="24sp"
+                android:layout_marginLeft="16sp"
+                android:layout_marginBottom="3dp"
+                android:layout_gravity="bottom"
+                android:src="@drawable/ic_account_circle"
+                />
+
+            <TextView
+                android:id="@+id/drawer_username"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:layout_gravity="bottom"
+                android:gravity="bottom"
+                android:orientation="vertical"
+                android:text="@string/app_name"
+                android:textColor="#FFF"
+                android:textStyle="bold"
+                android:paddingLeft="10dp"
+                android:textSize="24sp" />
+        </LinearLayout>
     </RelativeLayout>
 </merge>
\ No newline at end of file
     </RelativeLayout>
 </merge>
\ No newline at end of file