drawer: improve layout
Remove the account spinner. The account list is directly displayed in
the drawer. The 'Add account' action is also available from the drawer.
Tuleap: #1218
Change-Id: Idf6fcaeef8202b26ac0c406e46fee2d8c9f1eb90
diff --git a/ring-android/app/src/main/res/layout/item_account.xml b/ring-android/app/src/main/res/layout/item_account.xml
index 68c6cc2..871ca8f 100644
--- a/ring-android/app/src/main/res/layout/item_account.xml
+++ b/ring-android/app/src/main/res/layout/item_account.xml
@@ -19,9 +19,10 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:background="?android:attr/selectableItemBackground"
android:padding="16dp">
- <TextView
+ <android.support.v7.widget.AppCompatTextView
android:id="@+id/account_alias"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@@ -30,7 +31,7 @@
android:layout_alignParentTop="true"
android:textAppearance="@style/ListPrimary" />
- <TextView
+ <android.support.v7.widget.AppCompatTextView
android:id="@+id/account_host"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
@@ -39,11 +40,12 @@
android:layout_below="@+id/account_alias"
android:layout_toLeftOf="@+id/error_indicator"
android:layout_toStartOf="@+id/error_indicator"
- android:ellipsize="middle"
+ android:ellipsize="end"
+ android:maxLines="1"
android:singleLine="true"
android:textAppearance="@style/ListSecondary" />
- <ImageView
+ <android.support.v7.widget.AppCompatImageView
android:id="@+id/error_indicator"
android:layout_width="wrap_content"
android:layout_height="wrap_content"