给老婆写的的带返回的2048(数据库存储),虽然很烂。但是还是贴出来了

  1 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2     xmlns:tools="http://schemas.android.com/tools"
  3     android:layout_width="match_parent"
  4     android:layout_height="match_parent"
  5     android:paddingBottom="@dimen/activity_vertical_margin"
  6     android:paddingLeft="@dimen/activity_horizontal_margin"
  7     android:paddingRight="@dimen/activity_horizontal_margin"
  8     android:paddingTop="@dimen/activity_vertical_margin"
  9     tools:context=".MyActivity">
 10 
 11     <LinearLayout
 12         android:layout_width="match_parent"
 13         android:layout_height="match_parent"
 14         android:orientation="vertical">
 15 
 16         <LinearLayout
 17             android:layout_width="match_parent"
 18             android:layout_height="match_parent"
 19             android:layout_weight="9"
 20             android:orientation="vertical">
 21 
 22             <TextView
 23                 android:layout_width="match_parent"
 24                 android:layout_height="wrap_content"
 25                 android:gravity="center"
 26                 android:text="亲爱的,你最棒!"
 27                 android:textSize="30dp" />
 28 
 29             <LinearLayout
 30                 android:layout_width="match_parent"
 31                 android:layout_height="wrap_content"
 32                 android:gravity="center">
 33 
 34                 <TextView
 35                     android:layout_width="wrap_content"
 36                     android:layout_height="wrap_content"
 37                     android:text="分数:"
 38                     android:textSize="30dp" />
 39 
 40                 <TextView
 41                     android:id="@+id/score"
 42                     android:layout_width="wrap_content"
 43                     android:layout_height="wrap_content"
 44                     android:textSize="30dp"
 45                     android:text="0"/>
 46             </LinearLayout>
 47 
 48             <TextView
 49                 android:layout_width="match_parent"
 50                 android:layout_height="wrap_content"
 51                 android:gravity="center"
 52                 android:text="亲爱的,别忘了分享哦"
 53                 android:textSize="30dp" />
 54 
 55             <TextView
 56                 android:layout_width="match_parent"
 57                 android:layout_height="wrap_content"
 58                 android:gravity="center"
 59                 android:text="^_~"
 60                 android:textSize="30dp" />
 61         </LinearLayout>
 62 
 63         <LinearLayout
 64             android:id="@+id/gameView"
 65             android:layout_width="match_parent"
 66             android:layout_height="match_parent"
 67             android:layout_weight="5"
 68             android:background="#ffbbada0"
 69             android:orientation="vertical"
 70             android:padding="5dp">
 71 
 72             <LinearLayout
 73                 android:layout_width="match_parent"
 74                 android:layout_height="match_parent"
 75                 android:layout_weight="1">
 76 
 77                 <TextView
 78                     android:id="@+id/t0"
 79                     android:layout_width="match_parent"
 80                     android:layout_height="match_parent"
 81                     android:layout_margin="5dp"
 82                     android:layout_weight="1"
 83                     android:background="#ffcdc1b4"
 84                     android:gravity="center"
 85                     android:text="1"
 86                     android:textSize="30dp"/>
 87 
 88                 <TextView
 89                     android:id="@+id/t1"
 90                     android:layout_width="match_parent"
 91                     android:layout_height="match_parent"
 92                     android:layout_margin="5dp"
 93                     android:layout_weight="1"
 94                     android:gravity="center" />
 95 
 96                 <TextView
 97                     android:id="@+id/t2"
 98                     android:layout_width="match_parent"
 99                     android:layout_height="match_parent"
100                     android:layout_margin="5dp"
101                     android:layout_weight="1"
102                     android:gravity="center" />
103 
104                 <TextView
105                     android:id="@+id/t3"
106                     android:layout_width="match_parent"
107                     android:layout_height="match_parent"
108                     android:layout_margin="5dp"
109                     android:layout_weight="1"
110                     android:gravity="center" />
111             </LinearLayout>
112 
113             <LinearLayout
114                 android:layout_width="match_parent"
115                 android:layout_height="match_parent"
116                 android:layout_weight="1">
117 
118                 <TextView
119                     android:id="@+id/t4"
120                     android:layout_width="match_parent"
121                     android:layout_height="match_parent"
122                     android:layout_margin="5dp"
123                     android:layout_weight="1"
124                     android:gravity="center" />
125 
126                 <TextView
127                     android:id="@+id/t5"
128                     android:layout_width="match_parent"
129                     android:layout_height="match_parent"
130                     android:layout_margin="5dp"
131                     android:layout_weight="1"
132                     android:gravity="center" />
133 
134                 <TextView
135                     android:id="@+id/t6"
136                     android:layout_width="match_parent"
137                     android:layout_height="match_parent"
138                     android:layout_margin="5dp"
139                     android:layout_weight="1"
140                     android:gravity="center" />
141 
142                 <TextView
143                     android:id="@+id/t7"
144                     android:layout_width="match_parent"
145                     android:layout_height="match_parent"
146                     android:layout_margin="5dp"
147                     android:layout_weight="1"
148                     android:gravity="center" />
149             </LinearLayout>
150 
151             <LinearLayout
152                 android:layout_width="match_parent"
153                 android:layout_height="match_parent"
154                 android:layout_weight="1">
155 
156                 <TextView
157                     android:id="@+id/t8"
158                     android:layout_width="match_parent"
159                     android:layout_height="match_parent"
160                     android:layout_margin="5dp"
161                     android:layout_weight="1"
162                     android:gravity="center" />
163 
164                 <TextView
165                     android:id="@+id/t9"
166                     android:layout_width="match_parent"
167                     android:layout_height="match_parent"
168                     android:layout_margin="5dp"
169                     android:layout_weight="1"
170                     android:gravity="center" />
171 
172                 <TextView
173                     android:id="@+id/t10"
174                     android:layout_width="match_parent"
175                     android:layout_height="match_parent"
176                     android:layout_margin="5dp"
177                     android:layout_weight="1"
178                     android:gravity="center" />
179 
180                 <TextView
181                     android:id="@+id/t11"
182                     android:layout_width="match_parent"
183                     android:layout_height="match_parent"
184                     android:layout_margin="5dp"
185                     android:layout_weight="1"
186                     android:gravity="center" />
187             </LinearLayout>
188 
189             <LinearLayout
190                 android:layout_width="match_parent"
191                 android:layout_height="match_parent"
192                 android:layout_weight="1">
193 
194                 <TextView
195                     android:id="@+id/t12"
196                     android:layout_width="match_parent"
197                     android:layout_height="match_parent"
198                     android:layout_margin="5dp"
199                     android:layout_weight="1"
200                     android:gravity="center" />
201 
202                 <TextView
203                     android:id="@+id/t13"
204                     android:layout_width="match_parent"
205                     android:layout_height="match_parent"
206                     android:layout_margin="5dp"
207                     android:layout_weight="1"
208                     android:gravity="center" />
209 
210                 <TextView
211                     android:id="@+id/t14"
212                     android:layout_width="match_parent"
213                     android:layout_height="match_parent"
214                     android:layout_margin="5dp"
215                     android:layout_weight="1"
216                     android:gravity="center" />
217 
218                 <TextView
219                     android:id="@+id/t15"
220                     android:layout_width="match_parent"
221                     android:layout_height="match_parent"
222                     android:layout_margin="5dp"
223                     android:layout_weight="1"
224                     android:gravity="center" />
225             </LinearLayout>
226         </LinearLayout>
227     </LinearLayout>
228 
229 </RelativeLayout>
页面布局

相关文章:

  • 2021-11-12
  • 2022-02-14
  • 2022-01-29
  • 2022-12-23
  • 2021-12-04
  • 2021-09-28
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-08
  • 2021-06-29
  • 2022-02-24
  • 2022-01-28
相关资源
相似解决方案