blob: f25856845072d610f0a45abd5202bae3329ba0e6 [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"
Aline Bonnet9fe30342016-11-22 15:16:07 -050019 xmlns:tools="http://schemas.android.com/tools"
Alexandre Lisionfb0985b2013-09-27 16:23:44 -040020 android:layout_width="match_parent"
Adrien Beraudd7015752017-02-24 23:10:46 +010021 android:layout_height="60dp"
Alexandre Lision44f96932016-11-11 16:02:33 -050022 android:background="?android:attr/selectableItemBackground"
Adrien Beraudd7015752017-02-24 23:10:46 +010023 android:paddingLeft="16dp"
24 android:paddingRight="16dp"
25 android:paddingTop="8dp">
alisiona4325152013-04-19 11:10:03 -040026
Adrien Beraudd7015752017-02-24 23:10:46 +010027 <ImageView
Aline Bonnet9fe30342016-11-22 15:16:07 -050028 android:id="@+id/account_photo"
Adrien Beraudd7015752017-02-24 23:10:46 +010029 android:layout_width="40dp"
30 android:layout_height="40dp"
Aline Bonnet9fe30342016-11-22 15:16:07 -050031 android:layout_centerVertical="true"
Adrien Beraudd7015752017-02-24 23:10:46 +010032 android:layout_marginEnd="16dp"
33 android:layout_marginRight="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_toLeftOf="@+id/account_disabled"
Aline Bonnet9fe30342016-11-22 15:16:07 -050043 android:layout_toRightOf="@+id/account_photo"
Adrien Beraudd7015752017-02-24 23:10:46 +010044 android:layout_toStartOf="@+id/account_disabled"
Adrien Beraud4b8b3a62017-02-24 17:56:16 +010045 android:ellipsize="end"
Adrien Beraudd7015752017-02-24 23:10:46 +010046 android:lines="1"
Adrien Beraud9c8ee8c2017-03-14 18:19:31 +010047 android:textAppearance="@style/ListPrimary"
48 tools:text="Ring account" />
Adrien Béraud433a8592015-06-17 16:25:44 -040049
Adrien Beraud4b8b3a62017-02-24 17:56:16 +010050 <TextView
Adrien Beraudd7015752017-02-24 23:10:46 +010051 android:id="@+id/account_disabled"
52 style="@style/TextAppearance.AppCompat.Small"
53 android:layout_width="wrap_content"
54 android:layout_height="wrap_content"
55 android:layout_alignBaseline="@+id/account_alias"
56 android:layout_alignWithParentIfMissing="true"
57 android:layout_marginLeft="8dp"
58 android:layout_marginStart="8dp"
59 android:layout_toLeftOf="@+id/loading_indicator"
60 android:layout_toStartOf="@+id/loading_indicator"
61 android:text="@string/account_disabled_indicator"
62 android:textStyle="italic" />
63
64 <TextView
Alexandre Lisionfb0985b2013-09-27 16:23:44 -040065 android:id="@+id/account_host"
66 android:layout_width="wrap_content"
67 android:layout_height="wrap_content"
Adrien Béraudabd338e2015-12-12 01:57:31 -050068 android:layout_alignParentLeft="false"
Aline Bonnet9fe30342016-11-22 15:16:07 -050069 android:layout_alignParentStart="false"
Alexandre Lisionfb0985b2013-09-27 16:23:44 -040070 android:layout_below="@+id/account_alias"
Aline Bonnet9fe30342016-11-22 15:16:07 -050071 android:layout_toEndOf="@+id/account_photo"
Adrien Beraudd7015752017-02-24 23:10:46 +010072 android:layout_toLeftOf="@+id/loading_indicator"
Aline Bonnet9fe30342016-11-22 15:16:07 -050073 android:layout_toRightOf="@+id/account_photo"
Adrien Beraudd7015752017-02-24 23:10:46 +010074 android:layout_toStartOf="@+id/loading_indicator"
75 android:ellipsize="middle"
Alexandre Lision44f96932016-11-11 16:02:33 -050076 android:maxLines="1"
Adrien Béraudb179bab2015-10-08 12:04:22 -040077 android:singleLine="true"
Adrien Beraud9c8ee8c2017-03-14 18:19:31 +010078 android:textAppearance="@style/ListSecondary"
79 tools:text="ring:b982672502b9f1236a68353d74734cb82f9d1fab" />
Alexandre Lisiondd6623b2013-12-02 16:23:40 -050080
Adrien Beraudd7015752017-02-24 23:10:46 +010081 <ProgressBar
82 android:id="@+id/loading_indicator"
83 style="?android:attr/progressBarStyleSmall"
84 android:layout_width="wrap_content"
85 android:layout_height="wrap_content"
86 android:layout_alignWithParentIfMissing="true"
87 android:layout_centerVertical="true"
88 android:layout_marginLeft="16dp"
89 android:layout_marginStart="16dp"
90 android:layout_toLeftOf="@+id/error_indicator"
91 android:layout_toStartOf="@+id/error_indicator"
92 android:visibility="gone" />
93
94 <ImageView
Adrien Béraud433a8592015-06-17 16:25:44 -040095 android:id="@+id/error_indicator"
alisiona4325152013-04-19 11:10:03 -040096 android:layout_width="wrap_content"
97 android:layout_height="wrap_content"
Adrien Béraudabd338e2015-12-12 01:57:31 -050098 android:layout_alignParentEnd="true"
Adrien Beraudd7015752017-02-24 23:10:46 +010099 android:layout_alignParentRight="true"
Alexandre Lisionfb0985b2013-09-27 16:23:44 -0400100 android:layout_centerVertical="true"
Adrien Béraud87aa42a2015-12-16 16:13:36 -0500101 android:layout_marginLeft="16dp"
Adrien Béraudabd338e2015-12-12 01:57:31 -0500102 android:layout_marginStart="16dp"
Alexandre Lisionfb0985b2013-09-27 16:23:44 -0400103 android:clickable="false"
Alexandre Lisiondd6623b2013-12-02 16:23:40 -0500104 android:focusable="false"
Adrien Béraudb179bab2015-10-08 12:04:22 -0400105 android:focusableInTouchMode="false"
Aline Bonneta8011382016-11-01 12:10:16 -0400106 android:src="@drawable/ic_error_white"
Adrien Beraudd7015752017-02-24 23:10:46 +0100107 android:tint="@color/error_red"
108 android:visibility="gone" />
alisiona4325152013-04-19 11:10:03 -0400109
110</RelativeLayout>