Browse Source

修改部分ui

Pq 3 years ago
parent
commit
180511dd7e

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

@@ -3,8 +3,7 @@
     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/color_f6f8f9">
+    android:layout_height="match_parent">
 
     <View
         android:id="@+id/view_status_bar"
@@ -71,8 +70,6 @@
                 android:id="@+id/calendarView"
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
-                android:paddingStart="@dimen/dp_8"
-                android:paddingEnd="@dimen/dp_8"
                 app:calendar_height="@dimen/dp_56"
                 app:current_day_text_color="@color/colorPrimary"
                 app:current_month_text_color="@color/black_444"
@@ -102,7 +99,6 @@
                 android:id="@+id/recyclerView"
                 android:layout_width="match_parent"
                 android:layout_height="match_parent"
-                android:background="@color/color_f6f8f9"
                 android:overScrollMode="never"
                 android:scrollbars="none" />
         </com.haibin.calendarview.CalendarLayout>

+ 4 - 3
student/src/main/res/layout/layout_empty_course_table.xml

@@ -7,8 +7,8 @@
 
     <ImageView
         android:id="@+id/im_empty_logo"
-        android:layout_width="@dimen/dp_130"
-        android:layout_height="@dimen/dp_115"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
         android:layout_marginTop="8dp"
         android:background="@drawable/icon_empty_course"
         app:layout_constraintLeft_toLeftOf="parent"
@@ -21,7 +21,7 @@
         android:layout_height="wrap_content"
         android:gravity="center"
         android:lineSpacingExtra="4dp"
-        android:text="暂无预约课程"
+        android:text="暂无课程~"
         android:textSize="@dimen/sp_16"
         android:textColor="@color/color_999999"
         app:layout_constraintLeft_toLeftOf="parent"
@@ -30,6 +30,7 @@
 
 
     <TextView
+        android:visibility="gone"
         android:id="@+id/tv_find_course"
         android:layout_width="@dimen/dp_129"
         android:layout_height="@dimen/dp_45"

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

@@ -3,7 +3,6 @@
     xmlns:app="http://schemas.android.com/apk/res-auto"
     xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="match_parent"
-    android:background="@color/color_f6f8f9"
     android:layout_height="match_parent">
 
     <View
@@ -73,8 +72,6 @@
                 android:id="@+id/calendarView"
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
-                android:paddingStart="@dimen/dp_8"
-                android:paddingEnd="@dimen/dp_8"
                 app:calendar_height="@dimen/dp_56"
                 app:current_day_text_color="@color/colorPrimary"
                 app:current_month_text_color="@color/black_444"
@@ -104,7 +101,6 @@
                 android:id="@+id/recyclerView"
                 android:layout_width="match_parent"
                 android:layout_height="match_parent"
-                android:background="@color/color_f6f8f9"
                 android:overScrollMode="never"
                 android:scrollbars="none" />
         </com.haibin.calendarview.CalendarLayout>

+ 2 - 2
teacher/src/main/res/layout/layout_empty_course_table.xml

@@ -7,8 +7,8 @@
 
     <ImageView
         android:id="@+id/im_empty_logo"
-        android:layout_width="@dimen/dp_130"
-        android:layout_height="@dimen/dp_115"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
         android:layout_marginTop="8dp"
         android:background="@drawable/icon_empty_course"
         app:layout_constraintLeft_toLeftOf="parent"