2021-05-27 12:03:42 +03:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!-- Nextcloud Android client application
|
2021-03-22 18:57:30 +03:00
|
|
|
|
2021-04-15 00:17:09 +03:00
|
|
|
Copyright (C) 2017-2021 Andy Scherzinger
|
2021-03-22 18:57:30 +03:00
|
|
|
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"
|
2021-05-27 12:03:42 +03:00
|
|
|
xmlns:fresco="http://schemas.android.com/apk/res-auto"
|
2021-03-22 18:57:30 +03:00
|
|
|
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"
|
2022-08-09 19:44:35 +03:00
|
|
|
android:layout_height="wrap_content">
|
2021-03-22 18:57:30 +03:00
|
|
|
|
|
|
|
<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"
|
2021-05-27 12:03:42 +03:00
|
|
|
android:layout_marginTop="@dimen/standard_margin"
|
|
|
|
android:src="@drawable/account_circle_96dp"
|
2021-03-22 18:57:30 +03:00
|
|
|
android:transitionName="userAvatar.transitionTag"
|
2021-04-14 18:05:33 +03:00
|
|
|
app:roundAsCircle="true"
|
2021-05-27 12:03:42 +03:00
|
|
|
fresco:failureImage="@drawable/account_circle_96dp"
|
|
|
|
fresco:placeholderImage="@drawable/account_circle_96dp" />
|
2021-03-22 18:57:30 +03:00
|
|
|
|
|
|
|
<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"
|
|
|
|
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"
|
2022-08-09 16:27:01 +03:00
|
|
|
android:layout_margin="@dimen/standard_quarter_margin"
|
2021-03-22 18:57:30 +03:00
|
|
|
android:ellipsize="end"
|
|
|
|
android:lines="2"
|
2021-04-15 00:17:09 +03:00
|
|
|
android:textColor="@color/medium_emphasis_text"
|
2021-03-22 18:57:30 +03:00
|
|
|
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:orientation="horizontal"
|
|
|
|
android:visibility="invisible"
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
2022-08-01 20:11:56 +03:00
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
2021-03-22 18:57:30 +03:00
|
|
|
android:id="@+id/avatar_upload"
|
2022-08-01 20:11:56 +03:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2022-08-09 16:27:01 +03:00
|
|
|
android:layout_marginLeft="@dimen/standard_quarter_margin"
|
|
|
|
android:layout_marginRight="@dimen/standard_quarter_margin"
|
2022-08-09 19:44:35 +03:00
|
|
|
android:layout_marginBottom="@dimen/standard_margin"
|
2021-05-20 14:05:35 +03:00
|
|
|
android:contentDescription="@string/upload_new_avatar_from_device"
|
2022-08-01 20:11:56 +03:00
|
|
|
android:tint="@android:color/white"
|
2022-08-10 20:55:53 +03:00
|
|
|
app:elevation="0dp"
|
2022-08-09 16:27:01 +03:00
|
|
|
app:fabSize="mini"
|
2022-08-01 20:11:56 +03:00
|
|
|
app:srcCompat="@drawable/upload" />
|
2021-03-22 18:57:30 +03:00
|
|
|
|
2022-08-01 20:11:56 +03:00
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
2021-03-22 18:57:30 +03:00
|
|
|
android:id="@+id/avatar_choose"
|
2022-08-01 20:11:56 +03:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2022-08-09 16:27:01 +03:00
|
|
|
android:layout_marginLeft="@dimen/standard_quarter_margin"
|
|
|
|
android:layout_marginRight="@dimen/standard_quarter_margin"
|
2022-08-09 19:44:35 +03:00
|
|
|
android:layout_marginBottom="@dimen/standard_margin"
|
2021-05-20 14:05:35 +03:00
|
|
|
android:contentDescription="@string/choose_avatar_from_cloud"
|
2022-08-01 20:11:56 +03:00
|
|
|
android:tint="@android:color/white"
|
2022-08-10 20:55:53 +03:00
|
|
|
app:elevation="0dp"
|
2022-08-09 16:27:01 +03:00
|
|
|
app:fabSize="mini"
|
2022-08-01 20:11:56 +03:00
|
|
|
app:srcCompat="@drawable/ic_mimetype_folder" />
|
2021-03-22 18:57:30 +03:00
|
|
|
|
2022-08-01 20:11:56 +03:00
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
2022-06-28 17:50:22 +03:00
|
|
|
android:id="@+id/avatar_camera"
|
2022-08-01 20:11:56 +03:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2022-08-09 16:27:01 +03:00
|
|
|
android:layout_marginLeft="@dimen/standard_quarter_margin"
|
|
|
|
android:layout_marginRight="@dimen/standard_quarter_margin"
|
2022-08-09 19:44:35 +03:00
|
|
|
android:layout_marginBottom="@dimen/standard_margin"
|
2022-06-28 17:50:22 +03:00
|
|
|
android:contentDescription="@string/set_avatar_from_camera"
|
2022-08-01 20:11:56 +03:00
|
|
|
android:tint="@android:color/white"
|
2022-08-10 20:55:53 +03:00
|
|
|
app:elevation="0dp"
|
2022-08-09 16:27:01 +03:00
|
|
|
app:fabSize="mini"
|
2022-08-01 20:11:56 +03:00
|
|
|
app:srcCompat="@drawable/ic_baseline_photo_camera_24" />
|
2022-06-28 17:50:22 +03:00
|
|
|
|
2022-08-01 20:11:56 +03:00
|
|
|
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
2021-03-22 18:57:30 +03:00
|
|
|
android:id="@+id/avatar_delete"
|
2022-08-01 20:11:56 +03:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2022-08-09 16:27:01 +03:00
|
|
|
android:layout_marginLeft="@dimen/standard_quarter_margin"
|
|
|
|
android:layout_marginRight="@dimen/standard_quarter_margin"
|
2022-08-09 19:44:35 +03:00
|
|
|
android:layout_marginBottom="@dimen/standard_margin"
|
2021-05-20 14:05:35 +03:00
|
|
|
android:contentDescription="@string/delete_avatar"
|
2022-08-01 20:11:56 +03:00
|
|
|
android:tint="@android:color/white"
|
2022-08-10 20:55:53 +03:00
|
|
|
app:elevation="0dp"
|
2022-08-09 16:27:01 +03:00
|
|
|
app:fabSize="mini"
|
2022-08-01 20:11:56 +03:00
|
|
|
app:srcCompat="@drawable/trashbin" />
|
|
|
|
|
2021-03-22 18:57:30 +03:00
|
|
|
</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>
|