ui: adjustement on left menu
diff --git a/res/drawable-hdpi/ic_action_expand.png b/res/drawable-hdpi/ic_action_expand.png
new file mode 100644
index 0000000..eacb248
--- /dev/null
+++ b/res/drawable-hdpi/ic_action_expand.png
Binary files differ
diff --git a/res/drawable-hdpi/ic_action_expand_light.png b/res/drawable-hdpi/ic_action_expand_light.png
new file mode 100644
index 0000000..fd2e7ff
--- /dev/null
+++ b/res/drawable-hdpi/ic_action_expand_light.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_action_expand.png b/res/drawable-mdpi/ic_action_expand.png
new file mode 100644
index 0000000..e8e646b
--- /dev/null
+++ b/res/drawable-mdpi/ic_action_expand.png
Binary files differ
diff --git a/res/drawable-mdpi/ic_action_expand_light.png b/res/drawable-mdpi/ic_action_expand_light.png
new file mode 100644
index 0000000..236f4fe
--- /dev/null
+++ b/res/drawable-mdpi/ic_action_expand_light.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_action_expand.png b/res/drawable-xhdpi/ic_action_expand.png
new file mode 100644
index 0000000..4772487
--- /dev/null
+++ b/res/drawable-xhdpi/ic_action_expand.png
Binary files differ
diff --git a/res/drawable-xhdpi/ic_action_expand_light.png b/res/drawable-xhdpi/ic_action_expand_light.png
new file mode 100644
index 0000000..0452d8b
--- /dev/null
+++ b/res/drawable-xhdpi/ic_action_expand_light.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_action_expand.png b/res/drawable-xxhdpi/ic_action_expand.png
new file mode 100644
index 0000000..2200319
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_action_expand.png
Binary files differ
diff --git a/res/drawable-xxhdpi/ic_action_expand_light.png b/res/drawable-xxhdpi/ic_action_expand_light.png
new file mode 100644
index 0000000..5107082
--- /dev/null
+++ b/res/drawable-xxhdpi/ic_action_expand_light.png
Binary files differ
diff --git a/res/layout/frag_menu.xml b/res/layout/frag_menu.xml
index ec4b03c..f70f99d 100644
--- a/res/layout/frag_menu.xml
+++ b/res/layout/frag_menu.xml
@@ -8,7 +8,7 @@
<RelativeLayout
android:layout_width="match_parent"
- android:layout_height="wrap_content"
+ android:layout_height="100dp"
android:background="@color/sfl_blue_0"
android:padding="5dp" >
@@ -23,31 +23,39 @@
android:id="@+id/user_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_centerVertical="true"
+ android:layout_alignParentRight="true"
android:layout_marginLeft="15dp"
android:layout_toRightOf="@+id/user_photo"
android:singleLine="true"
android:textColor="@color/white"
android:textSize="20sp"
android:textStyle="bold" />
+
+ <RelativeLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_alignLeft="@+id/user_name"
+ android:layout_alignRight="@+id/user_name"
+ android:layout_alignParentBottom="true"
+ android:layout_below="@+id/user_name" >
+
+ <Spinner
+ android:id="@+id/account_selection"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="@color/sfl_blue_0" />
+
+ <ImageView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentRight="true"
+ android:layout_centerVertical="true"
+ android:clickable="false"
+ android:focusable="false"
+ android:src="@drawable/ic_action_expand_light" />
+ </RelativeLayout>
</RelativeLayout>
- <TextView
- android:id="@+id/list_header_title"
- style="?android:attr/listSeparatorTextViewStyle"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:paddingBottom="2dip"
- android:paddingLeft="5dip"
- android:paddingTop="2dip"
- android:text="@string/frag_menu_accounts_title"
- android:textColor="@color/black" />
-
- <Spinner
- android:id="@+id/account_selection"
- android:layout_width="match_parent"
- android:layout_height="wrap_content" />
-
<ListView
android:id="@+id/listView"
android:layout_width="match_parent"
diff --git a/res/layout/item_account.xml b/res/layout/item_account.xml
index 7554fb3..3f08521 100644
--- a/res/layout/item_account.xml
+++ b/res/layout/item_account.xml
@@ -2,6 +2,7 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:background="@color/sfl_blue_0"
android:padding="4dp" >
<TextView
@@ -12,24 +13,28 @@
android:layout_alignParentTop="true"
android:layout_marginBottom="4dp"
android:layout_marginLeft="4dp"
- android:textAppearance="?android:attr/textAppearanceLarge" />
-
- <TextView
+ android:textAppearance="?android:attr/textAppearanceLargeInverse" />
+
+ <TextView
android:id="@+id/account_host"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/account_alias"
+ android:layout_marginBottom="4dp"
android:layout_marginLeft="4dp"
- android:textAppearance="?android:attr/textAppearanceSmall" />
+ android:textAppearance="?android:attr/textAppearanceSmallInverse" />
- <RadioButton
- android:id="@+id/account_checked"
+
+ <ImageView
+ android:id="@+id/account_selected"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
+ android:background="@null"
android:clickable="false"
- android:focusable="false" />
+ android:focusable="false"
+ android:src="@drawable/ic_action_accept" />
</RelativeLayout>
\ No newline at end of file
diff --git a/res/layout/item_menu.xml b/res/layout/item_menu.xml
index ef00c7a..02e21a7 100644
--- a/res/layout/item_menu.xml
+++ b/res/layout/item_menu.xml
@@ -2,7 +2,7 @@
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/menu_title_categorie"
android:layout_width="match_parent"
- android:layout_height="wrap_content"
+ android:layout_height="?android:attr/listPreferredItemHeight"
android:gravity="center_vertical"
android:paddingBottom="10dip"
android:paddingLeft="15dip"