mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-12-17 22:21:57 +03:00
93a1d411e0
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
142 lines
6 KiB
XML
142 lines
6 KiB
XML
<?xml version="1.0" encoding="utf-8"?><!--
|
|
Nextcloud Talk application
|
|
|
|
Copyright (C) 2016 Andy Scherzinger
|
|
Copyright (C) 2016 Nextcloud
|
|
Copyright (C) 2016 ownCloud
|
|
Copyright (C) 2020 Infomaniak Network SA
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
|
|
License as published by the Free Software Foundation; either
|
|
version 3 of the License, or 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 AFFERO GENERAL PUBLIC LICENSE for more details.
|
|
|
|
You should have received a copy of the GNU Affero General Public
|
|
License along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
-->
|
|
<com.google.android.material.card.MaterialCardView 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"
|
|
xmlns:fresco="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="72dp"
|
|
android:layout_margin="4dp"
|
|
android:orientation="horizontal"
|
|
app:cardBackgroundColor="@color/transparent"
|
|
app:cardElevation="0dp">
|
|
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal"
|
|
tools:ignore="UnusedAttribute">
|
|
|
|
<FrameLayout
|
|
android:id="@+id/avatar_container"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_centerVertical="true">
|
|
|
|
<com.facebook.drawee.view.SimpleDraweeView
|
|
android:id="@+id/user_icon"
|
|
android:layout_width="@dimen/small_item_height"
|
|
android:layout_height="@dimen/small_item_height"
|
|
android:layout_gravity="top|start"
|
|
android:layout_marginStart="12dp"
|
|
android:layout_marginTop="1dp"
|
|
android:layout_marginEnd="1dp"
|
|
android:layout_marginBottom="1dp"
|
|
android:contentDescription="@string/avatar"
|
|
android:src="@drawable/account_circle_48dp"
|
|
fresco:placeholderImage="@drawable/account_circle_48dp"
|
|
fresco:failureImage="@drawable/account_circle_48dp"
|
|
app:roundAsCircle="true"/>
|
|
|
|
<ImageView
|
|
android:id="@+id/ticker"
|
|
android:layout_width="18dp"
|
|
android:layout_height="18dp"
|
|
android:layout_gravity="bottom|end"
|
|
android:background="@drawable/round_bgnd"
|
|
android:contentDescription="@string/nc_account_chooser_active_user"
|
|
android:src="@drawable/ic_check_circle"
|
|
tools:visibility="gone" />
|
|
</FrameLayout>
|
|
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerInParent="true"
|
|
android:layout_marginEnd="25dp"
|
|
android:layout_toEndOf="@id/avatar_container"
|
|
android:orientation="vertical"
|
|
android:paddingStart="3dp"
|
|
android:paddingEnd="0dp">
|
|
|
|
<TextView
|
|
android:id="@+id/user_name"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/standard_half_margin"
|
|
android:layout_marginTop="4dp"
|
|
android:layout_marginEnd="@dimen/standard_double_margin"
|
|
android:ellipsize="end"
|
|
android:gravity="bottom"
|
|
android:maxLines="1"
|
|
android:textColor="@color/conversation_item_header"
|
|
android:textSize="@dimen/two_line_primary_text_size"
|
|
tools:text="Firstname Lastname" />
|
|
|
|
<TextView
|
|
android:id="@+id/status"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/standard_half_margin"
|
|
android:layout_marginEnd="@dimen/standard_double_margin"
|
|
android:layout_marginBottom="4dp"
|
|
android:ellipsize="end"
|
|
android:gravity="top"
|
|
android:maxLines="1"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
android:visibility="gone"
|
|
tools:text="☁️ My custom status" />
|
|
|
|
<TextView
|
|
android:id="@+id/account"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/standard_half_margin"
|
|
android:layout_marginEnd="@dimen/standard_double_margin"
|
|
android:layout_marginBottom="4dp"
|
|
android:ellipsize="end"
|
|
android:gravity="top"
|
|
android:maxLines="1"
|
|
android:textColor="@color/textColorMaxContrast"
|
|
android:textSize="14sp"
|
|
tools:text="https://server.com/nextcloud" />
|
|
|
|
</LinearLayout>
|
|
|
|
<ImageView
|
|
android:id="@+id/account_menu"
|
|
android:layout_width="48dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_centerVertical="true"
|
|
android:clickable="true"
|
|
android:contentDescription="@string/nc_account_chooser_active_user"
|
|
android:focusable="true"
|
|
android:paddingStart="@dimen/standard_half_padding"
|
|
android:paddingEnd="10dp"
|
|
android:src="@drawable/ic_check_circle"
|
|
app:tint="@color/colorPrimary" />
|
|
|
|
</RelativeLayout>
|
|
</com.google.android.material.card.MaterialCardView>
|