blob: f51179aa5b8777c750c1662fe3b07119d54eee76 [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 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
Aline Bonnet9fe30342016-11-22 15:16:07 -050025 <android.support.v7.widget.AppCompatImageView
26 android:id="@+id/account_photo"
27 android:layout_width="36dp"
28 android:layout_height="36dp"
29 android:layout_centerVertical="true"
30 android:layout_marginEnd="8dp"
31 android:layout_marginRight="8dp"
32 tools:src="@drawable/ic_contact_picture" />
33
Adrien Beraud4b8b3a62017-02-24 17:56:16 +010034 <TextView
Alexandre Lisionfb0985b2013-09-27 16:23:44 -040035 android:id="@+id/account_alias"
36 android:layout_width="wrap_content"
37 android:layout_height="wrap_content"
Alexandre Lisionfb0985b2013-09-27 16:23:44 -040038 android:layout_alignParentTop="true"
Aline Bonnet9fe30342016-11-22 15:16:07 -050039 android:layout_toEndOf="@+id/account_photo"
Adrien Beraud4b8b3a62017-02-24 17:56:16 +010040 android:layout_toLeftOf="@+id/error_indicator"
Aline Bonnet9fe30342016-11-22 15:16:07 -050041 android:layout_toRightOf="@+id/account_photo"
Adrien Beraud4b8b3a62017-02-24 17:56:16 +010042 android:layout_toStartOf="@+id/error_indicator"
43 android:ellipsize="end"
Adrien Beraud9c8ee8c2017-03-14 18:19:31 +010044 android:textAppearance="@style/ListPrimary"
45 tools:text="Ring account" />
Adrien Béraud433a8592015-06-17 16:25:44 -040046
Adrien Beraud4b8b3a62017-02-24 17:56:16 +010047 <TextView
Alexandre Lisionfb0985b2013-09-27 16:23:44 -040048 android:id="@+id/account_host"
49 android:layout_width="wrap_content"
50 android:layout_height="wrap_content"
Adrien Béraudabd338e2015-12-12 01:57:31 -050051 android:layout_alignParentLeft="false"
Aline Bonnet9fe30342016-11-22 15:16:07 -050052 android:layout_alignParentStart="false"
Alexandre Lisionfb0985b2013-09-27 16:23:44 -040053 android:layout_below="@+id/account_alias"
Aline Bonnet9fe30342016-11-22 15:16:07 -050054 android:layout_toEndOf="@+id/account_photo"
Adrien Béraudabd338e2015-12-12 01:57:31 -050055 android:layout_toLeftOf="@+id/error_indicator"
Aline Bonnet9fe30342016-11-22 15:16:07 -050056 android:layout_toRightOf="@+id/account_photo"
Adrien Béraudabd338e2015-12-12 01:57:31 -050057 android:layout_toStartOf="@+id/error_indicator"
Alexandre Lision44f96932016-11-11 16:02:33 -050058 android:ellipsize="end"
59 android:maxLines="1"
Adrien Béraudb179bab2015-10-08 12:04:22 -040060 android:singleLine="true"
Adrien Beraud9c8ee8c2017-03-14 18:19:31 +010061 android:textAppearance="@style/ListSecondary"
62 tools:text="ring:b982672502b9f1236a68353d74734cb82f9d1fab" />
Alexandre Lisiondd6623b2013-12-02 16:23:40 -050063
Alexandre Lision44f96932016-11-11 16:02:33 -050064 <android.support.v7.widget.AppCompatImageView
Adrien Béraud433a8592015-06-17 16:25:44 -040065 android:id="@+id/error_indicator"
alisiona4325152013-04-19 11:10:03 -040066 android:layout_width="wrap_content"
67 android:layout_height="wrap_content"
Adrien Béraudabd338e2015-12-12 01:57:31 -050068 android:layout_alignParentEnd="true"
Alexandre Lisionfb0985b2013-09-27 16:23:44 -040069 android:layout_centerVertical="true"
Adrien Béraud87aa42a2015-12-16 16:13:36 -050070 android:layout_marginLeft="16dp"
Adrien Béraudabd338e2015-12-12 01:57:31 -050071 android:layout_marginStart="16dp"
Alexandre Lisionfb0985b2013-09-27 16:23:44 -040072 android:clickable="false"
Alexandre Lisiondd6623b2013-12-02 16:23:40 -050073 android:focusable="false"
Adrien Béraudb179bab2015-10-08 12:04:22 -040074 android:focusableInTouchMode="false"
Aline Bonneta8011382016-11-01 12:10:16 -040075 android:src="@drawable/ic_error_white"
Adrien Beraud9c8ee8c2017-03-14 18:19:31 +010076 android:tint="@android:color/holo_red_light"
77 android:layout_alignParentRight="true" />
alisiona4325152013-04-19 11:10:03 -040078
79</RelativeLayout>