2021-03-22 18:57:30 +03:00
|
|
|
<?xml version="1.0" encoding="utf-8"?><!-- Nextcloud Android client application
|
|
|
|
|
|
|
|
Copyright (C) 2017 Andy Scherzinger
|
|
|
|
Copyright (C) 2017 Nextcloud
|
|
|
|
|
|
|
|
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/>.
|
|
|
|
-->
|
|
|
|
<LinearLayout 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="match_parent"
|
|
|
|
android:background="@color/bg_default"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/avatarContainer"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<com.facebook.drawee.view.SimpleDraweeView
|
|
|
|
android:id="@+id/avatar_image"
|
|
|
|
android:layout_width="@dimen/avatar_size_big"
|
|
|
|
android:layout_height="@dimen/avatar_size_big"
|
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
android:layout_marginStart="16dp"
|
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
android:transitionName="userAvatar.transitionTag"
|
|
|
|
app:roundAsCircle="true" />
|
|
|
|
|
|
|
|
<androidx.emoji.widget.EmojiTextView
|
|
|
|
android:id="@+id/userinfo_fullName"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/avatar_image"
|
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
android:layout_marginTop="@dimen/margin_between_elements"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:textColor="@color/nc_incoming_text_default"
|
|
|
|
tools:text="John Doe" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/userinfo_baseurl"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/userinfo_fullName"
|
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
android:layout_margin="4dp"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:lines="2"
|
|
|
|
android:textColor="@color/nc_incoming_text_default"
|
|
|
|
tools:text="john@nextcloud.com" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/avatar_buttons"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/userinfo_baseurl"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:visibility="invisible"
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/avatar_upload"
|
|
|
|
android:layout_width="30dp"
|
|
|
|
android:layout_height="30dp"
|
|
|
|
android:layout_marginLeft="@dimen/standard_half_margin"
|
|
|
|
android:layout_marginRight="@dimen/standard_half_margin"
|
|
|
|
android:tint="@color/black"
|
|
|
|
android:src="@drawable/upload"
|
|
|
|
android:background="@drawable/round_corner"
|
|
|
|
android:contentDescription="@string/upload_new_avatar_from_device" />
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/avatar_choose"
|
|
|
|
android:layout_width="30dp"
|
|
|
|
android:layout_height="30dp"
|
|
|
|
android:layout_marginLeft="@dimen/standard_half_margin"
|
|
|
|
android:layout_marginRight="@dimen/standard_half_margin"
|
|
|
|
android:src="@drawable/ic_mimetype_folder"
|
|
|
|
android:background="@drawable/round_corner"
|
|
|
|
android:tint="@color/colorPrimary"
|
|
|
|
android:contentDescription="@string/choose_avatar_from_cloud" />
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/avatar_delete"
|
|
|
|
android:layout_width="30dp"
|
|
|
|
android:layout_height="30dp"
|
|
|
|
android:layout_marginLeft="@dimen/standard_half_margin"
|
|
|
|
android:layout_marginRight="@dimen/standard_half_margin"
|
|
|
|
android:src="@drawable/trashbin"
|
|
|
|
android:tint="@color/black"
|
|
|
|
android:background="@drawable/round_corner"
|
|
|
|
android:contentDescription="@string/delete_avatar" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/userinfo_list"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
|
|
|
|
tools:itemCount="3"
|
|
|
|
tools:listitem="@layout/user_info_details_table_item"
|
|
|
|
tools:visibility="gone" />
|
|
|
|
|
|
|
|
<include
|
|
|
|
android:id="@+id/emptyList"
|
|
|
|
layout="@layout/empty_list" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/loading_content"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
2021-04-08 01:09:16 +03:00
|
|
|
<include layout="@layout/user_info_details_table_item_shimmer" />
|
2021-03-22 18:57:30 +03:00
|
|
|
|
2021-04-08 01:09:16 +03:00
|
|
|
<include layout="@layout/user_info_details_table_item_shimmer" />
|
2021-03-22 18:57:30 +03:00
|
|
|
|
2021-04-08 01:09:16 +03:00
|
|
|
<include layout="@layout/user_info_details_table_item_shimmer" />
|
2021-03-22 18:57:30 +03:00
|
|
|
|
2021-04-08 01:09:16 +03:00
|
|
|
<include layout="@layout/user_info_details_table_item_shimmer" />
|
2021-03-22 18:57:30 +03:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|