Browse Source

1.布局添加framelayout

master
wangwanlei 11 months ago
parent
commit
c593b82ff4
1 changed files with 10 additions and 8 deletions
  1. 10
    8
      app/src/main/res/layout/activity_main.xml

+ 10
- 8
app/src/main/res/layout/activity_main.xml View File

3
     android:layout_width="match_parent"
3
     android:layout_width="match_parent"
4
     android:layout_height="match_parent"
4
     android:layout_height="match_parent"
5
     android:background="@drawable/main_bg"
5
     android:background="@drawable/main_bg"
6
-    android:orientation="vertical"
7
-    android:paddingTop="30dp">
6
+    android:orientation="vertical">
8
 
7
 
9
     <FrameLayout
8
     <FrameLayout
10
         android:layout_width="match_parent"
9
         android:layout_width="match_parent"
11
         android:layout_height="match_parent">
10
         android:layout_height="match_parent">
11
+
12
         <LinearLayout
12
         <LinearLayout
13
             android:layout_width="match_parent"
13
             android:layout_width="match_parent"
14
             android:layout_height="match_parent"
14
             android:layout_height="match_parent"
15
-            android:orientation="vertical">
15
+            android:orientation="vertical"
16
+            android:paddingTop="30dp">
16
 
17
 
17
             <Button
18
             <Button
18
                 android:id="@+id/btn"
19
                 android:id="@+id/btn"
67
                 android:layout_marginTop="24dp"
68
                 android:layout_marginTop="24dp"
68
                 android:overScrollMode="never" />
69
                 android:overScrollMode="never" />
69
         </LinearLayout>
70
         </LinearLayout>
71
+
70
         <TextView
72
         <TextView
71
             android:id="@+id/timestoptv"
73
             android:id="@+id/timestoptv"
72
             android:layout_width="match_parent"
74
             android:layout_width="match_parent"
73
             android:layout_height="match_parent"
75
             android:layout_height="match_parent"
76
+            android:background="@color/white"
74
             android:gravity="center"
77
             android:gravity="center"
75
-            android:text="@string/stoptips"
78
+            android:text="@string/timestoptips"
76
             android:textColor="@color/black"
79
             android:textColor="@color/black"
77
-            android:textSize="20sp"
78
-            android:visibility="gone" />
80
+            android:textSize="20sp" />
79
 
81
 
80
         <TextView
82
         <TextView
81
             android:id="@+id/stoptv"
83
             android:id="@+id/stoptv"
82
             android:layout_width="match_parent"
84
             android:layout_width="match_parent"
83
             android:layout_height="match_parent"
85
             android:layout_height="match_parent"
86
+            android:background="@color/white"
84
             android:gravity="center"
87
             android:gravity="center"
85
             android:text="@string/stoptips"
88
             android:text="@string/stoptips"
86
             android:textColor="@color/black"
89
             android:textColor="@color/black"
87
-            android:textSize="20sp"
88
-            android:visibility="gone" />
90
+            android:textSize="20sp" />
89
     </FrameLayout>
91
     </FrameLayout>
90
 </LinearLayout>
92
 </LinearLayout>

Loading…
Cancel
Save