質問編集履歴

1

start\.xmlとactivity_main\.xml等追記しました

2016/06/14 05:23

投稿

cray
cray

スコア29

test CHANGED
File without changes
test CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
 
14
14
 
15
- ##xml
15
+ ##activity_main.xml
16
16
 
17
17
  ```ここに言語を入力
18
18
 
@@ -58,6 +58,8 @@
58
58
 
59
59
  layにsurfaceViewを読み込ませています。
60
60
 
61
+ layscoreが上書きされてしまい、消えてしまいます。
62
+
61
63
 
62
64
 
63
65
 
@@ -158,6 +160,58 @@
158
160
 
159
161
 
160
162
 
163
+ ##start.xml
164
+
165
+ ```
166
+
167
+ <?xml version="1.0" encoding="utf-8"?>
168
+
169
+ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
170
+
171
+ android:orientation="vertical" android:layout_width="match_parent"
172
+
173
+ android:layout_height="match_parent" android:layout_marginTop="60dp">
174
+
175
+
176
+
177
+
178
+
179
+ <RelativeLayout
180
+
181
+ android:layout_width="match_parent"
182
+
183
+ android:layout_height="match_parent">
184
+
185
+
186
+
187
+
188
+
189
+ <Button
190
+
191
+ android:layout_width="wrap_content"
192
+
193
+ android:layout_height="wrap_content"
194
+
195
+ android:layout_centerInParent="true"
196
+
197
+ android:textSize="60dp"
198
+
199
+ android:text="START"
200
+
201
+ android:id="@+id/btn"/>
202
+
203
+ </RelativeLayout>
204
+
205
+
206
+
207
+ </LinearLayout>
208
+
209
+ ```
210
+
211
+
212
+
213
+
214
+
161
215
  Layoutの形を『のような形で実装できたら楽に作れそうなんですが・・・。
162
216
 
163
217
  どうしたら指定位置にTextviewを配置できるでしょうか?