Selaa lähdekoodia

修改UI样式

Pq 2 vuotta sitten
vanhempi
commit
a323fc9d75
1 muutettua tiedostoa jossa 5 lisäystä ja 4 poistoa
  1. 5 4
      student/src/main/res/layout/fragment_new_home_layout.xml

+ 5 - 4
student/src/main/res/layout/fragment_new_home_layout.xml

@@ -246,12 +246,13 @@
                             app:layout_constraintTop_toBottomOf="@+id/bg_announcement" />
 
                         <View
+                            app:layout_goneMarginTop="21dp"
                             android:id="@+id/view_line2"
                             android:layout_width="1px"
                             android:layout_height="1px"
-                            android:layout_marginTop="21dp"
+                            android:layout_marginTop="14dp"
                             app:layout_constraintLeft_toLeftOf="parent"
-                            app:layout_constraintTop_toBottomOf="@+id/viewpager_menu" />
+                            app:layout_constraintTop_toBottomOf="@+id/bg_announcement2" />
 
 
                         <androidx.cardview.widget.CardView
@@ -259,14 +260,14 @@
                             android:layout_width="match_parent"
                             android:layout_height="wrap_content"
                             android:layout_marginStart="14dp"
-                            android:layout_marginTop="@dimen/dp_12"
+                            android:layout_marginTop="@dimen/dp_21"
                             android:layout_marginEnd="14dp"
                             android:visibility="gone"
                             app:cardBackgroundColor="@color/color_fef9f4"
                             app:cardCornerRadius="10dp"
                             app:cardElevation="0dp"
                             app:layout_constraintLeft_toLeftOf="parent"
-                            app:layout_constraintTop_toBottomOf="@+id/view_bg_header">
+                            app:layout_constraintTop_toBottomOf="@+id/viewpager_menu">
 
                             <androidx.constraintlayout.widget.ConstraintLayout
                                 android:layout_width="match_parent"