|
@@ -1,5 +1,4 @@
|
|
-<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
-<!--
|
|
|
|
|
|
+<?xml version="1.0" encoding="utf-8"?><!--
|
|
Nextcloud Android client application
|
|
Nextcloud Android client application
|
|
|
|
|
|
Copyright (C) 2017 Andy Scherzinger
|
|
Copyright (C) 2017 Andy Scherzinger
|
|
@@ -18,51 +17,117 @@
|
|
You should have received a copy of the GNU Affero General Public
|
|
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/>.
|
|
License along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
-->
|
|
-->
|
|
-<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
- xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
- xmlns:card_view="http://schemas.android.com/apk/res-auto"
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
- android:layout_height="match_parent"
|
|
|
|
- android:background="@color/bg_default">
|
|
|
|
|
|
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
+ android:background="@color/bg_default"
|
|
|
|
+ android:orientation="vertical">
|
|
|
|
|
|
- <include layout="@layout/toolbar_user_information" />
|
|
|
|
|
|
+ <include layout="@layout/toolbar_standard" />
|
|
|
|
|
|
- <include layout="@layout/empty_list" />
|
|
|
|
-
|
|
|
|
- <androidx.core.widget.NestedScrollView
|
|
|
|
|
|
+ <RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
- android:layout_height="match_parent"
|
|
|
|
- android:layout_alignParentStart="true"
|
|
|
|
- android:layout_alignParentTop="true"
|
|
|
|
- app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
|
|
|
+ android:layout_height="@dimen/nav_drawer_header_height">
|
|
|
|
+
|
|
|
|
+ <ImageView
|
|
|
|
+ android:id="@+id/user_info_background"
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
+ android:contentDescription="@string/drawer_header_background"
|
|
|
|
+ android:scaleType="centerCrop" />
|
|
|
|
|
|
<LinearLayout
|
|
<LinearLayout
|
|
- android:id="@+id/user_info_view"
|
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
- android:layout_height="wrap_content"
|
|
|
|
- android:orientation="vertical"
|
|
|
|
- android:visibility="gone">
|
|
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
+ android:gravity="bottom"
|
|
|
|
+ android:orientation="vertical">
|
|
|
|
|
|
- <androidx.cardview.widget.CardView
|
|
|
|
- android:id="@+id/primary_user_info_view"
|
|
|
|
|
|
+ <RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
- android:layout_gravity="center"
|
|
|
|
- android:layout_margin="@dimen/standard_half_margin"
|
|
|
|
- card_view:cardCornerRadius="3dp"
|
|
|
|
- card_view:cardUseCompatPadding="true">
|
|
|
|
|
|
+ android:layout_marginStart="@dimen/toolbar_user_information_layout_margin"
|
|
|
|
+ android:layout_marginEnd="@dimen/standard_half_margin"
|
|
|
|
+ android:layout_marginBottom="@dimen/toolbar_user_information_layout_margin"
|
|
|
|
+ android:gravity="bottom"
|
|
|
|
+ android:orientation="horizontal"
|
|
|
|
+ android:weightSum="1">
|
|
|
|
|
|
- <androidx.recyclerview.widget.RecyclerView
|
|
|
|
- android:id="@+id/user_info_list"
|
|
|
|
|
|
+ <FrameLayout
|
|
|
|
+ android:id="@+id/avatar_container"
|
|
android:layout_width="wrap_content"
|
|
android:layout_width="wrap_content"
|
|
|
|
+ android:layout_height="wrap_content">
|
|
|
|
+
|
|
|
|
+ <ImageView
|
|
|
|
+ android:id="@+id/user_icon"
|
|
|
|
+ android:layout_width="@dimen/nav_drawer_header_avatar"
|
|
|
|
+ android:layout_height="@dimen/nav_drawer_header_avatar"
|
|
|
|
+ android:contentDescription="@string/avatar"
|
|
|
|
+ android:src="@drawable/account_circle_white" />
|
|
|
|
+ </FrameLayout>
|
|
|
|
+
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
- android:orientation="vertical"
|
|
|
|
- card_view:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"></androidx.recyclerview.widget.RecyclerView>
|
|
|
|
|
|
+ android:layout_centerInParent="true"
|
|
|
|
+ android:layout_marginLeft="@dimen/standard_half_margin"
|
|
|
|
+ android:layout_marginRight="@dimen/standard_half_margin"
|
|
|
|
+ android:layout_toEndOf="@id/avatar_container"
|
|
|
|
+ android:orientation="vertical">
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/userinfo_username_full"
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:ellipsize="end"
|
|
|
|
+ android:maxLines="1"
|
|
|
|
+ android:shadowColor="@color/drawer_shadow"
|
|
|
|
+ android:shadowDx="0.5"
|
|
|
|
+ android:shadowDy="0"
|
|
|
|
+ android:shadowRadius="2"
|
|
|
|
+ android:textColor="@color/white"
|
|
|
|
+ android:textSize="@dimen/drawer_header_text"
|
|
|
|
+ android:textStyle="bold" />
|
|
|
|
+
|
|
|
|
+ <TextView
|
|
|
|
+ android:id="@+id/userinfo_username"
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="wrap_content"
|
|
|
|
+ android:ellipsize="end"
|
|
|
|
+ android:lines="1"
|
|
|
|
+ android:maxLines="1"
|
|
|
|
+ android:shadowColor="@color/drawer_shadow"
|
|
|
|
+ android:shadowDx="0.5"
|
|
|
|
+ android:shadowDy="0"
|
|
|
|
+ android:shadowRadius="2"
|
|
|
|
+ android:textColor="@color/white"
|
|
|
|
+ android:textSize="@dimen/drawer_header_subtext" />
|
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
- </androidx.cardview.widget.CardView>
|
|
|
|
|
|
+ </RelativeLayout>
|
|
|
|
+
|
|
|
|
+ <include layout="@layout/info_box" />
|
|
|
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
+ </RelativeLayout>
|
|
|
|
|
|
- </androidx.core.widget.NestedScrollView>
|
|
|
|
|
|
+ <LinearLayout
|
|
|
|
+ android:id="@+id/user_info_view"
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
+ android:layout_margin="6dp"
|
|
|
|
+ android:orientation="vertical"
|
|
|
|
+ android:visibility="gone">
|
|
|
|
+
|
|
|
|
+ <androidx.recyclerview.widget.RecyclerView
|
|
|
|
+ android:id="@+id/user_info_list"
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
+ android:orientation="vertical"
|
|
|
|
+ app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
|
|
|
|
+
|
|
|
|
+ </LinearLayout>
|
|
|
|
+
|
|
|
|
+ <include layout="@layout/empty_list" />
|
|
|
|
|
|
-</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
|
|
|
|
+</LinearLayout>
|