nextcloud-talk-android/app/src/main/res/layout/account_item.xml
Marcel Hibbe 70b4eed654
delete deprecated CallItem + refactor related code
CallItem was only used before NC 14.
rv_item_conversation.xml was used by CallItem. After CallItem is now deleted, rv_item_conversation.xml was deleted from other xml classes as "tool"-view (this didn't make sense & was only a placeholder)
Furthermore, it was renamed to account_item.xml as now it is only used for account selection.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2022-01-26 17:25:22 +01:00

106 lines
4.5 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"/>
</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">
<androidx.emoji.widget.EmojiTextView
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="start|bottom"
android:maxLines="1"
android:textAlignment="viewStart"
android:textColor="@color/conversation_item_header"
android:textSize="@dimen/two_line_primary_text_size"
tools:text="Firstname Lastname" />
<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="start|top"
android:maxLines="1"
android:textAlignment="viewStart"
android:textColor="@color/textColorMaxContrast"
android:textSize="14sp"
tools:text="https://server.com/nextcloud" />
</LinearLayout>
</RelativeLayout>
</com.google.android.material.card.MaterialCardView>