blob: 159b9b5036732b08534c8643972a29a9c7bbd2d3 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2016-2020 Savoir-faire Linux Inc.
Author: Adrien Beraud <adrien.beraud@savoirfairelinux.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="60dp"
android:background="?android:attr/selectableItemBackground"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:paddingTop="8dp">
<ImageView
android:id="@+id/account_photo"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_centerVertical="true"
android:layout_marginEnd="16dp"
tools:src="@drawable/ic_contact_picture_fallback" />
<TextView
android:id="@+id/account_alias"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_toEndOf="@id/account_photo"
android:layout_toStartOf="@id/account_disabled"
android:ellipsize="end"
android:lines="1"
android:textAppearance="@style/ListPrimary"
tools:text="Ring account" />
<TextView
android:id="@+id/account_disabled"
style="@style/TextAppearance.MaterialComponents.Subtitle2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBaseline="@id/account_alias"
android:layout_alignWithParentIfMissing="true"
android:layout_marginStart="8dp"
android:layout_toStartOf="@id/loading_indicator"
android:text="@string/account_disabled_indicator"
android:textStyle="italic" />
<TextView
android:id="@+id/account_host"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="false"
android:layout_below="@id/account_alias"
android:layout_toEndOf="@id/account_photo"
android:layout_toStartOf="@id/loading_indicator"
android:ellipsize="middle"
android:singleLine="true"
android:textAppearance="@style/ListSecondary"
tools:text="ring:b982672502b9f1236a68353d74734cb82f9d1fab" />
<ProgressBar
android:id="@+id/loading_indicator"
style="?android:attr/progressBarStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignWithParentIfMissing="true"
android:layout_centerVertical="true"
android:layout_marginStart="16dp"
android:layout_toStartOf="@id/error_indicator"
android:visibility="gone" />
<ImageView
android:id="@+id/error_indicator"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:layout_marginStart="16dp"
android:clickable="false"
android:focusable="false"
android:focusableInTouchMode="false"
android:tint="@color/colorError"
android:visibility="gone"
app:srcCompat="@drawable/baseline_error_24" />
</RelativeLayout>