From 313c1ad8510711357827ce879b449dcb770bce9a Mon Sep 17 00:00:00 2001
From: Administrator <123>
Date: Tue, 02 Nov 2021 09:40:19 +0000
Subject: [PATCH] titlebar base 登录页UI

---
 app/src/main/res/layout/fragment_home.xml |   93 ++++++++++++++++++++++++----------------------
 1 files changed, 49 insertions(+), 44 deletions(-)

diff --git a/app/src/main/res/layout/fragment_home.xml b/app/src/main/res/layout/fragment_home.xml
index 6ed5bfb..0eb77bd 100644
--- a/app/src/main/res/layout/fragment_home.xml
+++ b/app/src/main/res/layout/fragment_home.xml
@@ -25,57 +25,62 @@
         app:layout_constraintBottom_toBottomOf="parent"
         >
 
-        <androidx.constraintlayout.widget.ConstraintLayout
+        <androidx.core.widget.NestedScrollView
             android:layout_width="match_parent"
-            android:layout_height="match_parent" >
+            android:layout_height="match_parent">
 
-
-            <androidx.recyclerview.widget.RecyclerView
-                android:id="@+id/recycler_top"
+            <androidx.constraintlayout.widget.ConstraintLayout
                 android:layout_width="match_parent"
-                android:layout_height="wrap_content"
-                android:overScrollMode="never"
-                app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
-                app:spanCount="3"
-                tools:itemCount="3"
-                tools:listitem="@layout/home_item_top" />
+                android:layout_height="wrap_content" >
 
-            <androidx.recyclerview.widget.RecyclerView
-                android:id="@+id/recycler_classify"
-                android:layout_width="match_parent"
-                android:layout_height="wrap_content"
-                android:layout_marginTop="10dp"
-                android:overScrollMode="never"
-                tools:listitem="@layout/home_item_classify"
-                app:layout_constraintTop_toBottomOf="@id/recycler_top"
-                app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
-                app:spanCount="5"
-                tools:itemCount="3"
-                tools:layout_editor_absoluteX="1dp"
-                tools:layout_editor_absoluteY="247dp"/>
 
-            <TextView
-                android:id="@+id/text_recommend"
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
-                app:layout_constraintTop_toBottomOf="@id/recycler_classify"
-                app:layout_constraintLeft_toLeftOf="parent"
-                android:textSize="14dp"
-                android:text="任务推荐"
-                android:textColor="@color/black"
-                android:layout_margin="@dimen/frame_margin_lr" />
+                <androidx.recyclerview.widget.RecyclerView
+                    android:id="@+id/recycler_top"
+                    android:layout_width="match_parent"
+                    android:layout_height="wrap_content"
+                    android:overScrollMode="never"
+                    app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
+                    app:spanCount="3"
+                    tools:itemCount="3"
+                    tools:listitem="@layout/home_item_top" />
 
-            <androidx.recyclerview.widget.RecyclerView
-                android:id="@+id/recycler_recommend"
-                android:layout_width="match_parent"
-                android:layout_height="wrap_content"
-                android:overScrollMode="never"
-                tools:listitem="@layout/homt_item_recommend"
-                app:layout_constraintLeft_toLeftOf="parent"
-                app:layout_constraintTop_toBottomOf="@id/text_recommend"
-                />
+                <androidx.recyclerview.widget.RecyclerView
+                    android:id="@+id/recycler_classify"
+                    android:layout_width="match_parent"
+                    android:layout_height="wrap_content"
+                    android:layout_marginTop="10dp"
+                    android:overScrollMode="never"
+                    tools:listitem="@layout/home_item_classify"
+                    app:layout_constraintTop_toBottomOf="@id/recycler_top"
+                    app:layoutManager="androidx.recyclerview.widget.GridLayoutManager"
+                    app:spanCount="5"
+                    tools:itemCount="3"
+                    tools:layout_editor_absoluteX="1dp"
+                    tools:layout_editor_absoluteY="247dp"/>
 
-        </androidx.constraintlayout.widget.ConstraintLayout>
+                <TextView
+                    android:id="@+id/text_recommend"
+                    android:layout_width="wrap_content"
+                    android:layout_height="wrap_content"
+                    app:layout_constraintTop_toBottomOf="@id/recycler_classify"
+                    app:layout_constraintLeft_toLeftOf="parent"
+                    android:textSize="14dp"
+                    android:text="任务推荐"
+                    android:textColor="@color/black"
+                    android:layout_margin="@dimen/frame_margin_lr" />
+
+                <androidx.recyclerview.widget.RecyclerView
+                    android:id="@+id/recycler_recommend"
+                    android:layout_width="match_parent"
+                    android:layout_height="wrap_content"
+                    android:overScrollMode="never"
+                    tools:listitem="@layout/homt_item_recommend"
+                    app:layout_constraintLeft_toLeftOf="parent"
+                    app:layout_constraintTop_toBottomOf="@id/text_recommend"
+                    />
+
+            </androidx.constraintlayout.widget.ConstraintLayout>
+        </androidx.core.widget.NestedScrollView>
     </com.scwang.smart.refresh.layout.SmartRefreshLayout>
 
 </androidx.constraintlayout.widget.ConstraintLayout>
\ No newline at end of file

--
Gitblit v1.9.1