| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright (c) 2016 Savoir-faire Linux Inc. |
| |
| Author: Adrien Beraud <adrien.beraud@savoirfairelinux.com> |
| |
| This program is free software; you can redistribute it and/or modify |
| it under the terms of the GNU General Public License as published by |
| the Free Software Foundation; either version 3 of the License, or |
| (at your option) any later version. |
| |
| This program is distributed in the hope that it will be useful, |
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| GNU General Public License for more details. |
| |
| You should have received a copy of the GNU General Public License |
| along with this program. If not, see <http://www.gnu.org/licenses/>. |
| --> |
| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:padding="16dp"> |
| |
| <TextView |
| android:id="@+id/account_alias" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignParentLeft="false" |
| android:layout_alignParentStart="true" |
| android:layout_alignParentTop="true" |
| android:textAppearance="@style/ListPrimary" /> |
| |
| <TextView |
| android:id="@+id/account_host" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignParentLeft="false" |
| android:layout_alignParentStart="true" |
| android:layout_below="@+id/account_alias" |
| android:layout_toLeftOf="@+id/error_indicator" |
| android:layout_toStartOf="@+id/error_indicator" |
| android:ellipsize="middle" |
| android:singleLine="true" |
| android:textAppearance="@style/ListSecondary" /> |
| |
| <ImageView |
| android:id="@+id/error_indicator" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignParentEnd="true" |
| android:layout_alignParentRight="false" |
| android:layout_centerVertical="true" |
| android:layout_marginLeft="16dp" |
| android:layout_marginStart="16dp" |
| android:clickable="false" |
| android:focusable="false" |
| android:focusableInTouchMode="false" |
| android:src="@drawable/ic_error_white_24dp" |
| android:tint="@android:color/holo_red_light" /> |
| |
| </RelativeLayout> |