質問編集履歴
2
dさ
test
CHANGED
File without changes
|
test
CHANGED
@@ -43,3 +43,299 @@
|
|
43
43
|
Windows7
|
44
44
|
|
45
45
|
開発対象のOS:Android 5.0.1
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
### 追記
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
コメントありがとうございます。
|
54
|
+
|
55
|
+
こちらは
|
56
|
+
|
57
|
+
プロジェクトを選択して右クリック「New」→「Activity」→「Basic Activity」→ActivityNameを入力→Finishをクリック
|
58
|
+
|
59
|
+
で作成すると、このような状態になります。(SelectModelActivity2を作成して状況を再現しました)
|
60
|
+
|
61
|
+
ラジオボタン、ボタンをRelativeLayoutで囲っても一枚目キャプチャの状態のままです。
|
62
|
+
|
63
|
+
xml、build.gradleの中身を書きましたので、こちらから分かることがありましたら教えて頂きたいです。
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
activity_select_model2.xml
|
68
|
+
|
69
|
+
![activity_select_model2.xml](518598b9ffe6dff3390b6ac44f30d87a.png)
|
70
|
+
|
71
|
+
activity_select_model2.xmlの中身
|
72
|
+
|
73
|
+
```activity_select_model2.xml
|
74
|
+
|
75
|
+
<?xml version="1.0" encoding="utf-8"?>
|
76
|
+
|
77
|
+
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
78
|
+
|
79
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
80
|
+
|
81
|
+
xmlns:tools="http://schemas.android.com/tools"
|
82
|
+
|
83
|
+
android:layout_width="match_parent"
|
84
|
+
|
85
|
+
android:layout_height="match_parent"
|
86
|
+
|
87
|
+
tools:context="com.example.xxxxxx.xxxx.SelectModelActivity2">
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
<android.support.design.widget.AppBarLayout
|
92
|
+
|
93
|
+
android:layout_width="match_parent"
|
94
|
+
|
95
|
+
android:layout_height="wrap_content"
|
96
|
+
|
97
|
+
android:theme="@style/AppTheme.AppBarOverlay">
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
<android.support.v7.widget.Toolbar
|
102
|
+
|
103
|
+
android:id="@+id/toolbar"
|
104
|
+
|
105
|
+
android:layout_width="match_parent"
|
106
|
+
|
107
|
+
android:layout_height="?attr/actionBarSize"
|
108
|
+
|
109
|
+
android:background="?attr/colorPrimary"
|
110
|
+
|
111
|
+
app:popupTheme="@style/AppTheme.PopupOverlay" />
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
</android.support.design.widget.AppBarLayout>
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
<include layout="@layout/content_select_model2" />
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
<android.support.design.widget.FloatingActionButton
|
124
|
+
|
125
|
+
android:id="@+id/fab"
|
126
|
+
|
127
|
+
android:layout_width="wrap_content"
|
128
|
+
|
129
|
+
android:layout_height="wrap_content"
|
130
|
+
|
131
|
+
android:layout_gravity="bottom|end"
|
132
|
+
|
133
|
+
android:layout_margin="@dimen/fab_margin"
|
134
|
+
|
135
|
+
app:srcCompat="@android:drawable/ic_dialog_email" />
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
</android.support.design.widget.CoordinatorLayout>
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
```
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
content_select_model2.xmlの中身
|
148
|
+
|
149
|
+
```
|
150
|
+
|
151
|
+
<?xml version="1.0" encoding="utf-8"?>
|
152
|
+
|
153
|
+
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
154
|
+
|
155
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
156
|
+
|
157
|
+
xmlns:tools="http://schemas.android.com/tools"
|
158
|
+
|
159
|
+
android:layout_width="match_parent"
|
160
|
+
|
161
|
+
android:layout_height="match_parent"
|
162
|
+
|
163
|
+
app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
164
|
+
|
165
|
+
tools:context="com.example.xxxxxx.xxxx.SelectModelActivity2"
|
166
|
+
|
167
|
+
tools:showIn="@layout/activity_select_model2">
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
<RadioGroup
|
172
|
+
|
173
|
+
android:layout_margin="@dimen/activity_horizontal_margin"
|
174
|
+
|
175
|
+
android:id="@+id/radioGroup"
|
176
|
+
|
177
|
+
android:layout_width="fill_parent"
|
178
|
+
|
179
|
+
android:layout_height="wrap_content"
|
180
|
+
|
181
|
+
android:orientation="vertical">
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
<RadioButton
|
186
|
+
|
187
|
+
android:id="@+id/radioButton1"
|
188
|
+
|
189
|
+
android:layout_width="fill_parent"
|
190
|
+
|
191
|
+
android:layout_height="wrap_content"
|
192
|
+
|
193
|
+
android:text="@string/radio_button_1"
|
194
|
+
|
195
|
+
android:textSize="18sp"/>
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
<RadioButton
|
200
|
+
|
201
|
+
android:id="@+id/radioButton2"
|
202
|
+
|
203
|
+
android:layout_width="fill_parent"
|
204
|
+
|
205
|
+
android:layout_height="wrap_content"
|
206
|
+
|
207
|
+
android:text="@string/radio_button_2"
|
208
|
+
|
209
|
+
android:textSize="18sp"/>
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
<RadioButton
|
214
|
+
|
215
|
+
android:id="@+id/radioButton3"
|
216
|
+
|
217
|
+
android:layout_width="fill_parent"
|
218
|
+
|
219
|
+
android:layout_height="wrap_content"
|
220
|
+
|
221
|
+
android:text="@string/radio_button_3"
|
222
|
+
|
223
|
+
android:textSize="18sp"/>
|
224
|
+
|
225
|
+
</RadioGroup>
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
<Button
|
230
|
+
|
231
|
+
android:layout_width="wrap_content"
|
232
|
+
|
233
|
+
android:layout_height="wrap_content"
|
234
|
+
|
235
|
+
android:text="@string/clea"
|
236
|
+
|
237
|
+
android:id="@+id/button"
|
238
|
+
|
239
|
+
android:textSize="18sp"
|
240
|
+
|
241
|
+
android:layout_centerVertical="true"
|
242
|
+
|
243
|
+
android:layout_alignLeft="@+id/radioGroup"
|
244
|
+
|
245
|
+
android:layout_alignStart="@+id/radioGroup" />
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
<Button
|
250
|
+
|
251
|
+
android:layout_width="wrap_content"
|
252
|
+
|
253
|
+
android:layout_height="wrap_content"
|
254
|
+
|
255
|
+
android:text="@string/submi"
|
256
|
+
|
257
|
+
android:id="@+id/button2"
|
258
|
+
|
259
|
+
android:textSize="18sp"
|
260
|
+
|
261
|
+
android:layout_centerVertical="true"
|
262
|
+
|
263
|
+
android:layout_centerHorizontal="true" />
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
</android.support.constraint.ConstraintLayout>
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
```
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
build.gradle (Module:app)の中身
|
276
|
+
|
277
|
+
```gradle
|
278
|
+
|
279
|
+
apply plugin: 'com.android.application'
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
android {
|
284
|
+
|
285
|
+
compileSdkVersion 23
|
286
|
+
|
287
|
+
buildToolsVersion '25.0.0'
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
defaultConfig {
|
292
|
+
|
293
|
+
applicationId "com.example.xxxxxx.xxxx"
|
294
|
+
|
295
|
+
minSdkVersion 18
|
296
|
+
|
297
|
+
targetSdkVersion 23
|
298
|
+
|
299
|
+
versionCode 1
|
300
|
+
|
301
|
+
versionName "1.0"
|
302
|
+
|
303
|
+
multiDexEnabled true
|
304
|
+
|
305
|
+
}
|
306
|
+
|
307
|
+
buildTypes {
|
308
|
+
|
309
|
+
release {
|
310
|
+
|
311
|
+
minifyEnabled false
|
312
|
+
|
313
|
+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
314
|
+
|
315
|
+
}
|
316
|
+
|
317
|
+
}
|
318
|
+
|
319
|
+
}
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
dependencies {
|
324
|
+
|
325
|
+
compile fileTree(include: ['*.jar'], dir: 'libs')
|
326
|
+
|
327
|
+
compile 'com.android.support:appcompat-v7:23.4.0'
|
328
|
+
|
329
|
+
compile 'com.google.android.gms:play-services:9.0.0'
|
330
|
+
|
331
|
+
compile 'com.android.support:design:23.4.0'
|
332
|
+
|
333
|
+
compile 'com.android.support:multidex:1.0.0'
|
334
|
+
|
335
|
+
compile 'com.android.support.constraint:constraint-layout:1.0.2'
|
336
|
+
|
337
|
+
testCompile 'junit:junit:4.12'
|
338
|
+
|
339
|
+
}
|
340
|
+
|
341
|
+
```
|
1
原因と思われるエラーの追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,6 +28,12 @@
|
|
28
28
|
|
29
29
|
|
30
30
|
|
31
|
+
java.lang.ClassNotFoundException: android.support.v4.view.OnApplyWindowInsetsListener
|
32
|
+
|
33
|
+
このエラーで表示がされていないような気がするのですが、どのように解決するのかが分かりません。
|
34
|
+
|
35
|
+
|
36
|
+
|
31
37
|
### 補足情報(FW/ツールのバージョンなど)
|
32
38
|
|
33
39
|
|