質問編集履歴
2
誤字がありました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -244,9 +244,7 @@
|
|
244
244
|
|
245
245
|
android:layout_width="match_parent"
|
246
246
|
|
247
|
-
android:layout_height="match_parent"
|
247
|
+
android:layout_height="match_parent">
|
248
|
-
|
249
|
-
tools:context="com.example.michimoto.mytouch.MainActivity">
|
250
248
|
|
251
249
|
|
252
250
|
|
1
レイアウトのソースコード追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -231,3 +231,99 @@
|
|
231
231
|
}
|
232
232
|
|
233
233
|
```
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
```xml
|
238
|
+
|
239
|
+
<?xml version="1.0" encoding="utf-8"?>
|
240
|
+
|
241
|
+
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
242
|
+
|
243
|
+
xmlns:tools="http://schemas.android.com/tools"
|
244
|
+
|
245
|
+
android:layout_width="match_parent"
|
246
|
+
|
247
|
+
android:layout_height="match_parent"
|
248
|
+
|
249
|
+
tools:context="com.example.michimoto.mytouch.MainActivity">
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
<TextView
|
254
|
+
|
255
|
+
android:textSize="40sp"
|
256
|
+
|
257
|
+
android:id="@+id/text"
|
258
|
+
|
259
|
+
android:layout_width="wrap_content"
|
260
|
+
|
261
|
+
android:layout_height="wrap_content"
|
262
|
+
|
263
|
+
android:text="タッチしてね!"
|
264
|
+
|
265
|
+
android:layout_alignParentTop="true"
|
266
|
+
|
267
|
+
android:layout_centerHorizontal="true"/>
|
268
|
+
|
269
|
+
"/>
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
<Button
|
274
|
+
|
275
|
+
android:text="start"
|
276
|
+
|
277
|
+
android:id="@+id/start_button"
|
278
|
+
|
279
|
+
android:layout_width="match_parent"
|
280
|
+
|
281
|
+
android:layout_height="wrap_content"
|
282
|
+
|
283
|
+
android:layout_marginLeft="10dp"
|
284
|
+
|
285
|
+
android:layout_marginRight="10dp"
|
286
|
+
|
287
|
+
android:layout_centerVertical="true"
|
288
|
+
|
289
|
+
android:layout_alignParentEnd="true"/>
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
<Button
|
294
|
+
|
295
|
+
android:text="stop"
|
296
|
+
|
297
|
+
android:id="@+id/stop_button"
|
298
|
+
|
299
|
+
android:layout_width="match_parent"
|
300
|
+
|
301
|
+
android:layout_height="wrap_content"
|
302
|
+
|
303
|
+
android:layout_marginLeft="10dp"
|
304
|
+
|
305
|
+
android:layout_marginRight="10dp"
|
306
|
+
|
307
|
+
android:layout_marginBottom="133dp"
|
308
|
+
|
309
|
+
android:layout_alignParentBottom="true"
|
310
|
+
|
311
|
+
android:layout_alignStart="@+id/start_button"/>
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
<TextView
|
316
|
+
|
317
|
+
android:id="@+id/timer"
|
318
|
+
|
319
|
+
android:layout_width="wrap_content"
|
320
|
+
|
321
|
+
android:layout_height="wrap_content"
|
322
|
+
|
323
|
+
android:text="TextView"
|
324
|
+
|
325
|
+
/>
|
326
|
+
|
327
|
+
</RelativeLayout>
|
328
|
+
|
329
|
+
```
|