浏览代码

修改部分ui

Pq 3 年之前
父节点
当前提交
170bf67dc7

+ 1 - 0
student/src/main/res/layout/fragment_course_table_layout.xml

@@ -97,6 +97,7 @@
 
             <androidx.recyclerview.widget.RecyclerView
                 android:id="@+id/recyclerView"
+                android:background="@color/color_f6f8f9"
                 android:layout_width="match_parent"
                 android:layout_height="match_parent"
                 android:overScrollMode="never"

+ 9 - 5
student/src/main/res/layout/layout_empty_conent.xml

@@ -1,17 +1,20 @@
 <?xml version="1.0" encoding="utf-8"?>
-<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<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="wrap_content">
+    android:orientation="vertical"
+    android:gravity="center"
+    android:layout_height="match_parent">
 
 
     <ImageView
         android:id="@+id/im_empty_logo"
-        android:layout_width="@dimen/dp_260"
-        android:layout_height="@dimen/dp_230"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
         android:layout_marginTop="8dp"
         android:background="@drawable/icon_empty_content"
         app:layout_constraintLeft_toLeftOf="parent"
+        app:layout_constraintBottom_toTopOf="@+id/tv_empty_hint"
         app:layout_constraintRight_toRightOf="parent"
         app:layout_constraintTop_toTopOf="parent" />
 
@@ -25,8 +28,9 @@
         android:textSize="@dimen/sp_16"
         android:textColor="@color/color_999999"
         android:text="暂无内容~"
+        app:layout_constraintBottom_toBottomOf="parent"
         app:layout_constraintLeft_toLeftOf="parent"
         app:layout_constraintRight_toRightOf="parent"
         app:layout_constraintTop_toBottomOf="@+id/im_empty_logo" />
 
-</androidx.constraintlayout.widget.ConstraintLayout>
+</LinearLayout>

+ 1 - 0
teacher/src/main/res/layout/fragment_course_table_layout.xml

@@ -99,6 +99,7 @@
 
             <androidx.recyclerview.widget.RecyclerView
                 android:id="@+id/recyclerView"
+                android:background="@color/color_f6f8f9"
                 android:layout_width="match_parent"
                 android:layout_height="match_parent"
                 android:overScrollMode="never"