Sébastien Blin | ab53ada | 2019-01-02 17:23:00 -0500 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2016-2019 Savoir-faire Linux Inc. |
Adrien Béraud | 14ddd73 | 2016-10-03 11:46:15 -0400 | [diff] [blame] | 2 | |
| 3 | Author: Adrien Beraud <adrien.beraud@savoirfairelinux.com> |
| 4 | |
| 5 | This program is free software; you can redistribute it and/or modify |
| 6 | it under the terms of the GNU General Public License as published by |
| 7 | the Free Software Foundation; either version 3 of the License, or |
| 8 | (at your option) any later version. |
| 9 | |
| 10 | This program is distributed in the hope that it will be useful, |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | GNU General Public License for more details. |
| 14 | |
| 15 | You should have received a copy of the GNU General Public License |
| 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | --> |
alision | a432515 | 2013-04-19 11:10:03 -0400 | [diff] [blame] | 18 | <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 19 | xmlns:app="http://schemas.android.com/apk/res-auto" |
Aline Bonnet | 9fe3034 | 2016-11-22 15:16:07 -0500 | [diff] [blame] | 20 | xmlns:tools="http://schemas.android.com/tools" |
Alexandre Lision | fb0985b | 2013-09-27 16:23:44 -0400 | [diff] [blame] | 21 | android:layout_width="match_parent" |
Adrien Beraud | d701575 | 2017-02-24 23:10:46 +0100 | [diff] [blame] | 22 | android:layout_height="60dp" |
Alexandre Lision | 44f9693 | 2016-11-11 16:02:33 -0500 | [diff] [blame] | 23 | android:background="?android:attr/selectableItemBackground" |
Adrien Beraud | d701575 | 2017-02-24 23:10:46 +0100 | [diff] [blame] | 24 | android:paddingLeft="16dp" |
| 25 | android:paddingRight="16dp" |
| 26 | android:paddingTop="8dp"> |
alision | a432515 | 2013-04-19 11:10:03 -0400 | [diff] [blame] | 27 | |
Adrien Beraud | d701575 | 2017-02-24 23:10:46 +0100 | [diff] [blame] | 28 | <ImageView |
Aline Bonnet | 9fe3034 | 2016-11-22 15:16:07 -0500 | [diff] [blame] | 29 | android:id="@+id/account_photo" |
Adrien Beraud | d701575 | 2017-02-24 23:10:46 +0100 | [diff] [blame] | 30 | android:layout_width="40dp" |
| 31 | android:layout_height="40dp" |
Aline Bonnet | 9fe3034 | 2016-11-22 15:16:07 -0500 | [diff] [blame] | 32 | android:layout_centerVertical="true" |
Adrien Beraud | d701575 | 2017-02-24 23:10:46 +0100 | [diff] [blame] | 33 | android:layout_marginEnd="16dp" |
Adrien Béraud | 5f8c3f7 | 2018-03-09 14:49:39 -0500 | [diff] [blame] | 34 | tools:src="@drawable/ic_contact_picture_fallback" /> |
Aline Bonnet | 9fe3034 | 2016-11-22 15:16:07 -0500 | [diff] [blame] | 35 | |
Adrien Beraud | 4b8b3a6 | 2017-02-24 17:56:16 +0100 | [diff] [blame] | 36 | <TextView |
Alexandre Lision | fb0985b | 2013-09-27 16:23:44 -0400 | [diff] [blame] | 37 | android:id="@+id/account_alias" |
| 38 | android:layout_width="wrap_content" |
| 39 | android:layout_height="wrap_content" |
Alexandre Lision | fb0985b | 2013-09-27 16:23:44 -0400 | [diff] [blame] | 40 | android:layout_alignParentTop="true" |
Aline Bonnet | 9fe3034 | 2016-11-22 15:16:07 -0500 | [diff] [blame] | 41 | android:layout_toEndOf="@+id/account_photo" |
Adrien Beraud | d701575 | 2017-02-24 23:10:46 +0100 | [diff] [blame] | 42 | android:layout_toStartOf="@+id/account_disabled" |
Adrien Beraud | 4b8b3a6 | 2017-02-24 17:56:16 +0100 | [diff] [blame] | 43 | android:ellipsize="end" |
Adrien Beraud | d701575 | 2017-02-24 23:10:46 +0100 | [diff] [blame] | 44 | android:lines="1" |
Adrien Beraud | 9c8ee8c | 2017-03-14 18:19:31 +0100 | [diff] [blame] | 45 | android:textAppearance="@style/ListPrimary" |
| 46 | tools:text="Ring account" /> |
Adrien Béraud | 433a859 | 2015-06-17 16:25:44 -0400 | [diff] [blame] | 47 | |
Adrien Beraud | 4b8b3a6 | 2017-02-24 17:56:16 +0100 | [diff] [blame] | 48 | <TextView |
Adrien Beraud | d701575 | 2017-02-24 23:10:46 +0100 | [diff] [blame] | 49 | android:id="@+id/account_disabled" |
Adrien Béraud | 8bc9510 | 2018-08-25 22:34:51 -0400 | [diff] [blame] | 50 | style="@style/TextAppearance.MaterialComponents.Subtitle2" |
Adrien Beraud | d701575 | 2017-02-24 23:10:46 +0100 | [diff] [blame] | 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 Beraud | d701575 | 2017-02-24 23:10:46 +0100 | [diff] [blame] | 55 | android:layout_marginStart="8dp" |
Adrien Beraud | d701575 | 2017-02-24 23:10:46 +0100 | [diff] [blame] | 56 | android:layout_toStartOf="@+id/loading_indicator" |
| 57 | android:text="@string/account_disabled_indicator" |
| 58 | android:textStyle="italic" /> |
| 59 | |
| 60 | <TextView |
Alexandre Lision | fb0985b | 2013-09-27 16:23:44 -0400 | [diff] [blame] | 61 | android:id="@+id/account_host" |
| 62 | android:layout_width="wrap_content" |
| 63 | android:layout_height="wrap_content" |
Aline Bonnet | 9fe3034 | 2016-11-22 15:16:07 -0500 | [diff] [blame] | 64 | android:layout_alignParentStart="false" |
Alexandre Lision | fb0985b | 2013-09-27 16:23:44 -0400 | [diff] [blame] | 65 | android:layout_below="@+id/account_alias" |
Aline Bonnet | 9fe3034 | 2016-11-22 15:16:07 -0500 | [diff] [blame] | 66 | android:layout_toEndOf="@+id/account_photo" |
Adrien Beraud | d701575 | 2017-02-24 23:10:46 +0100 | [diff] [blame] | 67 | android:layout_toStartOf="@+id/loading_indicator" |
| 68 | android:ellipsize="middle" |
Adrien Béraud | b179bab | 2015-10-08 12:04:22 -0400 | [diff] [blame] | 69 | android:singleLine="true" |
Adrien Beraud | 9c8ee8c | 2017-03-14 18:19:31 +0100 | [diff] [blame] | 70 | android:textAppearance="@style/ListSecondary" |
| 71 | tools:text="ring:b982672502b9f1236a68353d74734cb82f9d1fab" /> |
Alexandre Lision | dd6623b | 2013-12-02 16:23:40 -0500 | [diff] [blame] | 72 | |
Adrien Beraud | d701575 | 2017-02-24 23:10:46 +0100 | [diff] [blame] | 73 | <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 Beraud | d701575 | 2017-02-24 23:10:46 +0100 | [diff] [blame] | 80 | android:layout_marginStart="16dp" |
Adrien Beraud | d701575 | 2017-02-24 23:10:46 +0100 | [diff] [blame] | 81 | android:layout_toStartOf="@+id/error_indicator" |
| 82 | android:visibility="gone" /> |
| 83 | |
| 84 | <ImageView |
Adrien Béraud | 433a859 | 2015-06-17 16:25:44 -0400 | [diff] [blame] | 85 | android:id="@+id/error_indicator" |
alision | a432515 | 2013-04-19 11:10:03 -0400 | [diff] [blame] | 86 | android:layout_width="wrap_content" |
| 87 | android:layout_height="wrap_content" |
Adrien Béraud | abd338e | 2015-12-12 01:57:31 -0500 | [diff] [blame] | 88 | android:layout_alignParentEnd="true" |
Alexandre Lision | fb0985b | 2013-09-27 16:23:44 -0400 | [diff] [blame] | 89 | android:layout_centerVertical="true" |
Adrien Béraud | abd338e | 2015-12-12 01:57:31 -0500 | [diff] [blame] | 90 | android:layout_marginStart="16dp" |
Alexandre Lision | fb0985b | 2013-09-27 16:23:44 -0400 | [diff] [blame] | 91 | android:clickable="false" |
Alexandre Lision | dd6623b | 2013-12-02 16:23:40 -0500 | [diff] [blame] | 92 | android:focusable="false" |
Adrien Béraud | b179bab | 2015-10-08 12:04:22 -0400 | [diff] [blame] | 93 | android:focusableInTouchMode="false" |
Adrien Beraud | d701575 | 2017-02-24 23:10:46 +0100 | [diff] [blame] | 94 | android:tint="@color/error_red" |
Pierre Duchemin | a552929 | 2017-12-18 17:25:54 -0500 | [diff] [blame] | 95 | android:visibility="gone" |
| 96 | app:srcCompat="@drawable/ic_error_white" /> |
alision | a432515 | 2013-04-19 11:10:03 -0400 | [diff] [blame] | 97 | |
| 98 | </RelativeLayout> |