blob: 871ca8fdb34a00f2e77e121a096c004a4a6acb07 [file] [log] [blame]
alisiona4325152013-04-19 11:10:03 -04001<?xml version="1.0" encoding="utf-8"?>
Adrien Béraud14ddd732016-10-03 11:46:15 -04002<!-- Copyright (c) 2016 Savoir-faire Linux Inc.
3
4Author: Adrien Beraud <adrien.beraud@savoirfairelinux.com>
5
6This program is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 3 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program. If not, see <http://www.gnu.org/licenses/>.
18-->
alisiona4325152013-04-19 11:10:03 -040019<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
Alexandre Lisionfb0985b2013-09-27 16:23:44 -040020 android:layout_width="match_parent"
Adrien Béraud87aa42a2015-12-16 16:13:36 -050021 android:layout_height="wrap_content"
Alexandre Lision44f96932016-11-11 16:02:33 -050022 android:background="?android:attr/selectableItemBackground"
Adrien Béraud433a8592015-06-17 16:25:44 -040023 android:padding="16dp">
alisiona4325152013-04-19 11:10:03 -040024
Alexandre Lision44f96932016-11-11 16:02:33 -050025 <android.support.v7.widget.AppCompatTextView
Alexandre Lisionfb0985b2013-09-27 16:23:44 -040026 android:id="@+id/account_alias"
27 android:layout_width="wrap_content"
28 android:layout_height="wrap_content"
Adrien Béraudabd338e2015-12-12 01:57:31 -050029 android:layout_alignParentLeft="false"
30 android:layout_alignParentStart="true"
Alexandre Lisionfb0985b2013-09-27 16:23:44 -040031 android:layout_alignParentTop="true"
Adrien Béraudabd338e2015-12-12 01:57:31 -050032 android:textAppearance="@style/ListPrimary" />
Adrien Béraud433a8592015-06-17 16:25:44 -040033
Alexandre Lision44f96932016-11-11 16:02:33 -050034 <android.support.v7.widget.AppCompatTextView
Alexandre Lisionfb0985b2013-09-27 16:23:44 -040035 android:id="@+id/account_host"
36 android:layout_width="wrap_content"
37 android:layout_height="wrap_content"
Adrien Béraudabd338e2015-12-12 01:57:31 -050038 android:layout_alignParentLeft="false"
39 android:layout_alignParentStart="true"
Alexandre Lisionfb0985b2013-09-27 16:23:44 -040040 android:layout_below="@+id/account_alias"
Adrien Béraudabd338e2015-12-12 01:57:31 -050041 android:layout_toLeftOf="@+id/error_indicator"
42 android:layout_toStartOf="@+id/error_indicator"
Alexandre Lision44f96932016-11-11 16:02:33 -050043 android:ellipsize="end"
44 android:maxLines="1"
Adrien Béraudb179bab2015-10-08 12:04:22 -040045 android:singleLine="true"
Adrien Béraudabd338e2015-12-12 01:57:31 -050046 android:textAppearance="@style/ListSecondary" />
Alexandre Lisiondd6623b2013-12-02 16:23:40 -050047
Alexandre Lision44f96932016-11-11 16:02:33 -050048 <android.support.v7.widget.AppCompatImageView
Adrien Béraud433a8592015-06-17 16:25:44 -040049 android:id="@+id/error_indicator"
alisiona4325152013-04-19 11:10:03 -040050 android:layout_width="wrap_content"
51 android:layout_height="wrap_content"
Adrien Béraudabd338e2015-12-12 01:57:31 -050052 android:layout_alignParentEnd="true"
53 android:layout_alignParentRight="false"
Alexandre Lisionfb0985b2013-09-27 16:23:44 -040054 android:layout_centerVertical="true"
Adrien Béraud87aa42a2015-12-16 16:13:36 -050055 android:layout_marginLeft="16dp"
Adrien Béraudabd338e2015-12-12 01:57:31 -050056 android:layout_marginStart="16dp"
Alexandre Lisionfb0985b2013-09-27 16:23:44 -040057 android:clickable="false"
Alexandre Lisiondd6623b2013-12-02 16:23:40 -050058 android:focusable="false"
Adrien Béraudb179bab2015-10-08 12:04:22 -040059 android:focusableInTouchMode="false"
Aline Bonneta8011382016-11-01 12:10:16 -040060 android:src="@drawable/ic_error_white"
Adrien Béraudabd338e2015-12-12 01:57:31 -050061 android:tint="@android:color/holo_red_light" />
alisiona4325152013-04-19 11:10:03 -040062
63</RelativeLayout>