blob: 3960d9102bec2f6e050576aa8b6b576c7baab891 [file] [log] [blame]
Adrien Beraud4b8b3a62017-02-24 17:56:16 +01001<?xml version="1.0" encoding="utf-8"?><!-- Copyright (c) 2016 Savoir-faire Linux Inc.
Adrien Béraud14ddd732016-10-03 11:46:15 -04002
3Author: Adrien Beraud <adrien.beraud@savoirfairelinux.com>
4
5This program is free software; you can redistribute it and/or modify
6it under the terms of the GNU General Public License as published by
7the Free Software Foundation; either version 3 of the License, or
8(at your option) any later version.
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program. If not, see <http://www.gnu.org/licenses/>.
17-->
alisiona4325152013-04-19 11:10:03 -040018<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
Pierre Duchemina5529292017-12-18 17:25:54 -050019 xmlns:app="http://schemas.android.com/apk/res-auto"
Aline Bonnet9fe30342016-11-22 15:16:07 -050020 xmlns:tools="http://schemas.android.com/tools"
Alexandre Lisionfb0985b2013-09-27 16:23:44 -040021 android:layout_width="match_parent"
Adrien Beraudd7015752017-02-24 23:10:46 +010022 android:layout_height="60dp"
Alexandre Lision44f96932016-11-11 16:02:33 -050023 android:background="?android:attr/selectableItemBackground"
Adrien Beraudd7015752017-02-24 23:10:46 +010024 android:paddingLeft="16dp"
25 android:paddingRight="16dp"
26 android:paddingTop="8dp">
alisiona4325152013-04-19 11:10:03 -040027
Adrien Beraudd7015752017-02-24 23:10:46 +010028 <ImageView
Aline Bonnet9fe30342016-11-22 15:16:07 -050029 android:id="@+id/account_photo"
Adrien Beraudd7015752017-02-24 23:10:46 +010030 android:layout_width="40dp"
31 android:layout_height="40dp"
Aline Bonnet9fe30342016-11-22 15:16:07 -050032 android:layout_centerVertical="true"
Adrien Beraudd7015752017-02-24 23:10:46 +010033 android:layout_marginEnd="16dp"
Aline Bonnet9fe30342016-11-22 15:16:07 -050034 tools:src="@drawable/ic_contact_picture" />
35
Adrien Beraud4b8b3a62017-02-24 17:56:16 +010036 <TextView
Alexandre Lisionfb0985b2013-09-27 16:23:44 -040037 android:id="@+id/account_alias"
38 android:layout_width="wrap_content"
39 android:layout_height="wrap_content"
Alexandre Lisionfb0985b2013-09-27 16:23:44 -040040 android:layout_alignParentTop="true"
Aline Bonnet9fe30342016-11-22 15:16:07 -050041 android:layout_toEndOf="@+id/account_photo"
Adrien Beraudd7015752017-02-24 23:10:46 +010042 android:layout_toStartOf="@+id/account_disabled"
Adrien Beraud4b8b3a62017-02-24 17:56:16 +010043 android:ellipsize="end"
Adrien Beraudd7015752017-02-24 23:10:46 +010044 android:lines="1"
Adrien Beraud9c8ee8c2017-03-14 18:19:31 +010045 android:textAppearance="@style/ListPrimary"
46 tools:text="Ring account" />
Adrien Béraud433a8592015-06-17 16:25:44 -040047
Adrien Beraud4b8b3a62017-02-24 17:56:16 +010048 <TextView
Adrien Beraudd7015752017-02-24 23:10:46 +010049 android:id="@+id/account_disabled"
50 style="@style/TextAppearance.AppCompat.Small"
51 android:layout_width="wrap_content"
52 android:layout_height="wrap_content"
53 android:layout_alignBaseline="@+id/account_alias"
54 android:layout_alignWithParentIfMissing="true"
Adrien Beraudd7015752017-02-24 23:10:46 +010055 android:layout_marginStart="8dp"
Adrien Beraudd7015752017-02-24 23:10:46 +010056 android:layout_toStartOf="@+id/loading_indicator"
57 android:text="@string/account_disabled_indicator"
58 android:textStyle="italic" />
59
60 <TextView
Alexandre Lisionfb0985b2013-09-27 16:23:44 -040061 android:id="@+id/account_host"
62 android:layout_width="wrap_content"
63 android:layout_height="wrap_content"
Aline Bonnet9fe30342016-11-22 15:16:07 -050064 android:layout_alignParentStart="false"
Alexandre Lisionfb0985b2013-09-27 16:23:44 -040065 android:layout_below="@+id/account_alias"
Aline Bonnet9fe30342016-11-22 15:16:07 -050066 android:layout_toEndOf="@+id/account_photo"
Adrien Beraudd7015752017-02-24 23:10:46 +010067 android:layout_toStartOf="@+id/loading_indicator"
68 android:ellipsize="middle"
Adrien Béraudb179bab2015-10-08 12:04:22 -040069 android:singleLine="true"
Adrien Beraud9c8ee8c2017-03-14 18:19:31 +010070 android:textAppearance="@style/ListSecondary"
71 tools:text="ring:b982672502b9f1236a68353d74734cb82f9d1fab" />
Alexandre Lisiondd6623b2013-12-02 16:23:40 -050072
Adrien Beraudd7015752017-02-24 23:10:46 +010073 <ProgressBar
74 android:id="@+id/loading_indicator"
75 style="?android:attr/progressBarStyleSmall"
76 android:layout_width="wrap_content"
77 android:layout_height="wrap_content"
78 android:layout_alignWithParentIfMissing="true"
79 android:layout_centerVertical="true"
Adrien Beraudd7015752017-02-24 23:10:46 +010080 android:layout_marginStart="16dp"
Adrien Beraudd7015752017-02-24 23:10:46 +010081 android:layout_toStartOf="@+id/error_indicator"
82 android:visibility="gone" />
83
84 <ImageView
Adrien Béraud433a8592015-06-17 16:25:44 -040085 android:id="@+id/error_indicator"
alisiona4325152013-04-19 11:10:03 -040086 android:layout_width="wrap_content"
87 android:layout_height="wrap_content"
Adrien Béraudabd338e2015-12-12 01:57:31 -050088 android:layout_alignParentEnd="true"
Alexandre Lisionfb0985b2013-09-27 16:23:44 -040089 android:layout_centerVertical="true"
Adrien Béraudabd338e2015-12-12 01:57:31 -050090 android:layout_marginStart="16dp"
Alexandre Lisionfb0985b2013-09-27 16:23:44 -040091 android:clickable="false"
Alexandre Lisiondd6623b2013-12-02 16:23:40 -050092 android:focusable="false"
Adrien Béraudb179bab2015-10-08 12:04:22 -040093 android:focusableInTouchMode="false"
Adrien Beraudd7015752017-02-24 23:10:46 +010094 android:tint="@color/error_red"
Pierre Duchemina5529292017-12-18 17:25:54 -050095 android:visibility="gone"
96 app:srcCompat="@drawable/ic_error_white" />
alisiona4325152013-04-19 11:10:03 -040097
98</RelativeLayout>