Sfoglia il codice sorgente

[修改]更改激励视频测优化按钮位置

zeki 5 anni fa
parent
commit
0f95996f0b

+ 3 - 1
app/src/main/res/layout/act_bottom_bar.xml

@@ -16,7 +16,9 @@
             android:id="@+id/main_header"
             android:id="@+id/main_header"
             android:layout_width="match_parent"
             android:layout_width="match_parent"
             android:layout_height="40dp"
             android:layout_height="40dp"
-            android:layout_marginTop="42dp"></RelativeLayout>
+            android:layout_marginTop="42dp">
+
+    </RelativeLayout>
 
 
     <include
     <include
             layout="@layout/main_frame_layout"
             layout="@layout/main_frame_layout"

+ 13 - 8
app/src/main/res/layout/activity_login.xml

@@ -1,8 +1,10 @@
 <?xml version="1.0" encoding="utf-8"?>
 <?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
-              android:layout_width="match_parent"
-              android:layout_height="match_parent"
-              android:orientation="vertical">
+<android.support.constraint.ConstraintLayout
+        xmlns:android="http://schemas.android.com/apk/res/android"
+        android:layout_width="match_parent"
+        android:layout_height="match_parent"
+        xmlns:app="http://schemas.android.com/apk/res-auto"
+        android:orientation="vertical">
     <FrameLayout
     <FrameLayout
             android:id="@+id/fragment_container"
             android:id="@+id/fragment_container"
             android:background="@color/white"
             android:background="@color/white"
@@ -12,8 +14,11 @@
 
 
     <Button
     <Button
             android:id="@+id/btn_courage_video"
             android:id="@+id/btn_courage_video"
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:text="开启激励视频"/>
+            android:layout_width="100dp"
+            android:layout_height="100dp"
+            android:layout_margin="32dp"
+            app:layout_constraintStart_toStartOf="parent"
+            app:layout_constraintTop_toTopOf="parent"
+            android:text="激励视频"/>
 
 
-</LinearLayout>
+</android.support.constraint.ConstraintLayout>