| <?xml version="1.0" encoding="utf-8"?> |
| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| android:layout_width="match_parent" |
| android:layout_height="72dp" |
| android:padding="16dp"> |
| |
| <TextView |
| android:id="@+id/account_alias" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignParentLeft="true" |
| android:layout_alignParentTop="true" |
| android:textAppearance="@style/ListPrimary" |
| android:text="Account name" /> |
| |
| <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:textAppearance="@style/ListSecondary" |
| android:text="hostnamehostnamehostnamehostnamehostnamehostnamehostnamehostname" |
| android:ellipsize="middle" |
| android:singleLine="true" |
| android:layout_toLeftOf="@+id/error_indicator" |
| android:layout_toStartOf="@+id/error_indicator" /> |
| |
| <ImageView |
| android:id="@+id/error_indicator" |
| 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_error_white_24dp" |
| android:focusableInTouchMode="false" |
| android:tint="@android:color/holo_red_light" |
| android:layout_marginLeft="16dp" /> |
| |
| </RelativeLayout> |