質問編集履歴
1
エラー内容、およびactivity_main.xmlについて追記いたしました
test
CHANGED
File without changes
|
test
CHANGED
@@ -12,6 +12,8 @@
|
|
12
12
|
|
13
13
|
|
14
14
|
|
15
|
+
こちらMainActivity.ktです。
|
16
|
+
|
15
17
|
```
|
16
18
|
|
17
19
|
class MainActivity : AppCompatActivity() {
|
@@ -82,6 +84,120 @@
|
|
82
84
|
|
83
85
|
|
84
86
|
|
87
|
+
こちらactivity_main.xmlです。
|
88
|
+
|
89
|
+
```
|
90
|
+
|
91
|
+
<?xml version="1.0" encoding="utf-8"?>
|
92
|
+
|
93
|
+
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
94
|
+
|
95
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
96
|
+
|
97
|
+
xmlns:tools="http://schemas.android.com/tools"
|
98
|
+
|
99
|
+
android:layout_width="match_parent"
|
100
|
+
|
101
|
+
android:layout_height="match_parent"
|
102
|
+
|
103
|
+
tools:context=".MainActivity">
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
<LinearLayout
|
108
|
+
|
109
|
+
android:id="@+id/linearLayout"
|
110
|
+
|
111
|
+
android:layout_width="368dp"
|
112
|
+
|
113
|
+
android:layout_height="wrap_content"
|
114
|
+
|
115
|
+
android:layout_marginEnd="8dp"
|
116
|
+
|
117
|
+
android:layout_marginStart="8dp"
|
118
|
+
|
119
|
+
android:gravity="bottom"
|
120
|
+
|
121
|
+
android:orientation="horizontal"
|
122
|
+
|
123
|
+
android:visibility="visible"
|
124
|
+
|
125
|
+
app:layout_constraintBottom_toBottomOf="parent"
|
126
|
+
|
127
|
+
app:layout_constraintEnd_toEndOf="parent"
|
128
|
+
|
129
|
+
app:layout_constraintStart_toStartOf="parent">
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
<Button
|
134
|
+
|
135
|
+
android:id="@+id/charactor"
|
136
|
+
|
137
|
+
style="@style/Widget.AppCompat.Button"
|
138
|
+
|
139
|
+
android:layout_width="wrap_content"
|
140
|
+
|
141
|
+
android:layout_height="match_parent"
|
142
|
+
|
143
|
+
android:layout_weight="1"
|
144
|
+
|
145
|
+
android:text="@string/charactor" />
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
<Button
|
150
|
+
|
151
|
+
android:id="@+id/creature"
|
152
|
+
|
153
|
+
style="@style/Widget.AppCompat.Button"
|
154
|
+
|
155
|
+
android:layout_width="wrap_content"
|
156
|
+
|
157
|
+
android:layout_height="wrap_content"
|
158
|
+
|
159
|
+
android:layout_weight="1"
|
160
|
+
|
161
|
+
android:text="@string/creature" />
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
<Button
|
166
|
+
|
167
|
+
android:id="@+id/setting"
|
168
|
+
|
169
|
+
style="@style/Widget.AppCompat.Button"
|
170
|
+
|
171
|
+
android:layout_width="wrap_content"
|
172
|
+
|
173
|
+
android:layout_height="wrap_content"
|
174
|
+
|
175
|
+
android:layout_weight="1"
|
176
|
+
|
177
|
+
android:text="@string/setting" />
|
178
|
+
|
179
|
+
</LinearLayout>
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
<android.support.constraint.Guideline
|
184
|
+
|
185
|
+
android:id="@+id/guideline"
|
186
|
+
|
187
|
+
android:layout_width="wrap_content"
|
188
|
+
|
189
|
+
android:layout_height="wrap_content"
|
190
|
+
|
191
|
+
android:orientation="horizontal"
|
192
|
+
|
193
|
+
app:layout_constraintGuide_begin="232dp" />
|
194
|
+
|
195
|
+
</android.support.constraint.ConstraintLayout>
|
196
|
+
|
197
|
+
```
|
198
|
+
|
199
|
+
|
200
|
+
|
85
201
|
### 試したこと
|
86
202
|
|
87
203
|
|