質問編集履歴
2
コードを追加しました。遅れてすみません。
test
CHANGED
File without changes
|
test
CHANGED
@@ -425,3 +425,121 @@
|
|
425
425
|
}
|
426
426
|
|
427
427
|
```
|
428
|
+
|
429
|
+
|
430
|
+
|
431
|
+
```ここに言語を入力
|
432
|
+
|
433
|
+
コード ///activity_main.xml///
|
434
|
+
|
435
|
+
<?xml version="1.0" encoding="utf-8"?>
|
436
|
+
|
437
|
+
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
438
|
+
|
439
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
440
|
+
|
441
|
+
xmlns:tools="http://schemas.android.com/tools">
|
442
|
+
|
443
|
+
|
444
|
+
|
445
|
+
<ImageButton
|
446
|
+
|
447
|
+
android:id="@+id/choki"
|
448
|
+
|
449
|
+
android:layout_width="100dp"
|
450
|
+
|
451
|
+
android:layout_height="100dp"
|
452
|
+
|
453
|
+
android:layout_marginStart="8dp"
|
454
|
+
|
455
|
+
android:layout_marginTop="8dp"
|
456
|
+
|
457
|
+
android:layout_marginEnd="8dp"
|
458
|
+
|
459
|
+
android:layout_marginBottom="8dp"
|
460
|
+
|
461
|
+
android:scaleType="fitCenter"
|
462
|
+
|
463
|
+
app:layout_constraintBottom_toBottomOf="parent"
|
464
|
+
|
465
|
+
app:layout_constraintEnd_toEndOf="parent"
|
466
|
+
|
467
|
+
app:layout_constraintStart_toStartOf="parent"
|
468
|
+
|
469
|
+
app:layout_constraintTop_toTopOf="parent"
|
470
|
+
|
471
|
+
app:srcCompat="@drawable/choki" />
|
472
|
+
|
473
|
+
|
474
|
+
|
475
|
+
<ImageButton
|
476
|
+
|
477
|
+
android:id="@+id/pa"
|
478
|
+
|
479
|
+
android:layout_width="100dp"
|
480
|
+
|
481
|
+
android:layout_height="100dp"
|
482
|
+
|
483
|
+
android:layout_marginStart="8dp"
|
484
|
+
|
485
|
+
android:scaleType="fitCenter"
|
486
|
+
|
487
|
+
app:layout_constraintStart_toEndOf="@+id/choki"
|
488
|
+
|
489
|
+
app:layout_constraintTop_toTopOf="@+id/choki"
|
490
|
+
|
491
|
+
app:srcCompat="@drawable/pa" />
|
492
|
+
|
493
|
+
|
494
|
+
|
495
|
+
<ImageButton
|
496
|
+
|
497
|
+
android:id="@+id/gu"
|
498
|
+
|
499
|
+
android:layout_width="100dp"
|
500
|
+
|
501
|
+
android:layout_height="100dp"
|
502
|
+
|
503
|
+
android:layout_marginEnd="8dp"
|
504
|
+
|
505
|
+
android:scaleType="fitCenter"
|
506
|
+
|
507
|
+
app:layout_constraintEnd_toStartOf="@+id/choki"
|
508
|
+
|
509
|
+
app:layout_constraintTop_toTopOf="@+id/choki"
|
510
|
+
|
511
|
+
app:srcCompat="@drawable/gu" />
|
512
|
+
|
513
|
+
|
514
|
+
|
515
|
+
<TextView
|
516
|
+
|
517
|
+
android:id="@+id/textView"
|
518
|
+
|
519
|
+
android:layout_width="wrap_content"
|
520
|
+
|
521
|
+
android:layout_height="wrap_content"
|
522
|
+
|
523
|
+
android:layout_marginStart="8dp"
|
524
|
+
|
525
|
+
android:layout_marginTop="8dp"
|
526
|
+
|
527
|
+
android:layout_marginEnd="8dp"
|
528
|
+
|
529
|
+
android:layout_marginBottom="8dp"
|
530
|
+
|
531
|
+
android:text="@string/janken_text"
|
532
|
+
|
533
|
+
android:textAppearance="@style/TextAppearance.AppCompat.Large"
|
534
|
+
|
535
|
+
app:layout_constraintBottom_toTopOf="@+id/choki"
|
536
|
+
|
537
|
+
app:layout_constraintEnd_toEndOf="parent"
|
538
|
+
|
539
|
+
app:layout_constraintStart_toStartOf="parent"
|
540
|
+
|
541
|
+
app:layout_constraintTop_toTopOf="parent" />
|
542
|
+
|
543
|
+
</androidx.constraintlayout.widget.ConstraintLayout>
|
544
|
+
|
545
|
+
```
|
1
codeボタンを使って編集しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,9 +8,11 @@
|
|
8
8
|
|
9
9
|
情報が足りない場合は載せますのでご指摘ください。
|
10
10
|
|
11
|
+
|
12
|
+
|
11
|
-
|
13
|
+
```ここに言語を入力
|
12
|
-
|
14
|
+
|
13
|
-
|
15
|
+
コード///mainactivity///
|
14
16
|
|
15
17
|
|
16
18
|
|
@@ -90,9 +92,13 @@
|
|
90
92
|
|
91
93
|
}
|
92
94
|
|
93
|
-
|
95
|
+
```
|
96
|
+
|
97
|
+
|
98
|
+
|
94
|
-
|
99
|
+
```ここに言語を入力
|
100
|
+
|
95
|
-
///resultactivity///
|
101
|
+
コード///resultactivity///
|
96
102
|
|
97
103
|
|
98
104
|
|
@@ -417,3 +423,5 @@
|
|
417
423
|
}
|
418
424
|
|
419
425
|
}
|
426
|
+
|
427
|
+
```
|