質問編集履歴
3
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -110,7 +110,7 @@
|
|
110
110
|
|
111
111
|
android:layout_height="wrap_content"
|
112
112
|
|
113
|
-
android:onClick="showMessage
|
113
|
+
android:onClick="showMessage"
|
114
114
|
|
115
115
|
android:text="Button2"
|
116
116
|
|
@@ -156,7 +156,7 @@
|
|
156
156
|
|
157
157
|
android:layout_height="wrap_content"
|
158
158
|
|
159
|
-
android:onClick="showMessage
|
159
|
+
android:onClick="showMessage"
|
160
160
|
|
161
161
|
android:text="Button3"
|
162
162
|
|
2
レイアウトのコードの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -60,6 +60,116 @@
|
|
60
60
|
|
61
61
|
}
|
62
62
|
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
<?xml version="1.0" encoding="utf-8"?>
|
68
|
+
|
69
|
+
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
70
|
+
|
71
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
72
|
+
|
73
|
+
xmlns:tools="http://schemas.android.com/tools"
|
74
|
+
|
75
|
+
android:layout_width="match_parent"
|
76
|
+
|
77
|
+
android:layout_height="match_parent"
|
78
|
+
|
79
|
+
tools:context=".MainActivity">
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
<TextView
|
84
|
+
|
85
|
+
android:id="@+id/textView"
|
86
|
+
|
87
|
+
android:layout_width="wrap_content"
|
88
|
+
|
89
|
+
android:layout_height="wrap_content"
|
90
|
+
|
91
|
+
android:text="ボタンを押してね!"
|
92
|
+
|
93
|
+
app:layout_constraintBottom_toBottomOf="parent"
|
94
|
+
|
95
|
+
app:layout_constraintHorizontal_bias="0.498"
|
96
|
+
|
97
|
+
app:layout_constraintLeft_toLeftOf="parent"
|
98
|
+
|
99
|
+
app:layout_constraintRight_toRightOf="parent"
|
100
|
+
|
101
|
+
app:layout_constraintTop_toTopOf="parent" />
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
<Button
|
106
|
+
|
107
|
+
android:id="@+id/button2"
|
108
|
+
|
109
|
+
android:layout_width="wrap_content"
|
110
|
+
|
111
|
+
android:layout_height="wrap_content"
|
112
|
+
|
113
|
+
android:onClick="showMessage2"
|
114
|
+
|
115
|
+
android:text="Button2"
|
116
|
+
|
117
|
+
app:layout_constraintBottom_toBottomOf="parent"
|
118
|
+
|
119
|
+
app:layout_constraintEnd_toEndOf="parent"
|
120
|
+
|
121
|
+
app:layout_constraintStart_toStartOf="parent"
|
122
|
+
|
123
|
+
app:layout_constraintTop_toBottomOf="@+id/textView" />
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
<Button
|
128
|
+
|
129
|
+
android:id="@+id/button1"
|
130
|
+
|
131
|
+
android:layout_width="wrap_content"
|
132
|
+
|
133
|
+
android:layout_height="wrap_content"
|
134
|
+
|
135
|
+
android:onClick="showMessage"
|
136
|
+
|
137
|
+
android:text="Button1"
|
138
|
+
|
139
|
+
app:layout_constraintBottom_toBottomOf="parent"
|
140
|
+
|
141
|
+
app:layout_constraintEnd_toStartOf="@+id/button2"
|
142
|
+
|
143
|
+
app:layout_constraintStart_toStartOf="parent"
|
144
|
+
|
145
|
+
app:layout_constraintTop_toBottomOf="@+id/textView"
|
146
|
+
|
147
|
+
app:layout_constraintVertical_bias="0.503" />
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
<Button
|
152
|
+
|
153
|
+
android:id="@+id/button3"
|
154
|
+
|
155
|
+
android:layout_width="wrap_content"
|
156
|
+
|
157
|
+
android:layout_height="wrap_content"
|
158
|
+
|
159
|
+
android:onClick="showMessage3"
|
160
|
+
|
161
|
+
android:text="Button3"
|
162
|
+
|
163
|
+
app:layout_constraintBottom_toBottomOf="parent"
|
164
|
+
|
165
|
+
app:layout_constraintEnd_toEndOf="parent"
|
166
|
+
|
167
|
+
app:layout_constraintStart_toEndOf="@+id/button2"
|
168
|
+
|
169
|
+
app:layout_constraintTop_toBottomOf="@+id/textView" />
|
170
|
+
|
171
|
+
|
172
|
+
|
63
173
|
```
|
64
174
|
|
65
175
|
|
1
場所の変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
```
|
18
18
|
|
19
|
-
|
19
|
+
実行されない
|
20
20
|
|
21
21
|
```
|
22
22
|
|
@@ -28,11 +28,7 @@
|
|
28
28
|
|
29
29
|
```ここに言語名を入力
|
30
30
|
|
31
|
-
ソースコード
|
32
|
-
|
33
|
-
```
|
34
|
-
|
35
|
-
lass MainActivity : AppCompatActivity() {
|
31
|
+
class MainActivity : AppCompatActivity() {
|
36
32
|
|
37
33
|
override fun onCreate(savedInstanceState: Bundle?) {
|
38
34
|
|
@@ -64,6 +60,10 @@
|
|
64
60
|
|
65
61
|
}
|
66
62
|
|
63
|
+
```
|
64
|
+
|
65
|
+
|
66
|
+
|
67
67
|
### 試したこと
|
68
68
|
|
69
69
|
|