質問編集履歴
2
すいません、今直して更新しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,7 +24,7 @@
|
|
24
24
|
|
25
25
|
【コード】
|
26
26
|
|
27
|
-
<?xml version="1.0" encoding="utf-8"?>
|
27
|
+
```<?xml version="1.0" encoding="utf-8"?>
|
28
28
|
|
29
29
|
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
30
30
|
|
@@ -235,3 +235,7 @@
|
|
235
235
|
|
236
236
|
|
237
237
|
</android.support.constraint.ConstraintLayout>
|
238
|
+
|
239
|
+
コード
|
240
|
+
|
241
|
+
```
|
1
コードと情報の追記させていただきました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -15,3 +15,223 @@
|
|
15
15
|
一応()内の場所を開いてみたり、Googleで検索してみたりしたのですが、どう対処すべきかわからず、ここで質問させていただきました。
|
16
16
|
|
17
17
|
回答よろしくお願いします。
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
android studioのバージョンは2.3です。
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
【コード】
|
26
|
+
|
27
|
+
<?xml version="1.0" encoding="utf-8"?>
|
28
|
+
|
29
|
+
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
30
|
+
|
31
|
+
xmlns:app="http://schemas.android.com/apk/res-auto"
|
32
|
+
|
33
|
+
xmlns:tools="http://schemas.android.com/tools"
|
34
|
+
|
35
|
+
android:layout_width="match_parent"
|
36
|
+
|
37
|
+
android:layout_height="match_parent"
|
38
|
+
|
39
|
+
tools:context="com.websarva.wings.android.viewsample.ViewSampleActivity">
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
<LinearLayout
|
44
|
+
|
45
|
+
android:layout_width="387dp"
|
46
|
+
|
47
|
+
android:layout_height="514dp"
|
48
|
+
|
49
|
+
android:background="#A1A9BA"
|
50
|
+
|
51
|
+
android:orientation="vertical">
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
<TextView
|
56
|
+
|
57
|
+
android:layout_width="wrap_content"
|
58
|
+
|
59
|
+
android:layout_height="wrap_content"
|
60
|
+
|
61
|
+
android:background="#ffffff"
|
62
|
+
|
63
|
+
android:text="@string/tv_msg"
|
64
|
+
|
65
|
+
android:textSize="25sp"
|
66
|
+
|
67
|
+
tools:layout_editor_absoluteY="0dp"
|
68
|
+
|
69
|
+
tools:layout_editor_absoluteX="0dp" />
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
<EditText
|
74
|
+
|
75
|
+
android:layout_width="0dp"
|
76
|
+
|
77
|
+
android:layout_height="wrap_content"
|
78
|
+
|
79
|
+
android:background="#ffffff"
|
80
|
+
|
81
|
+
android:inputType="text"
|
82
|
+
|
83
|
+
tools:layout_editor_absoluteX="8dp"
|
84
|
+
|
85
|
+
tools:layout_editor_absoluteY="0dp" />
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
<LinearLayout
|
90
|
+
|
91
|
+
android:layout_width="0dp"
|
92
|
+
|
93
|
+
android:layout_height="wrap_content"
|
94
|
+
|
95
|
+
android:background="#df7401"
|
96
|
+
|
97
|
+
android:orientation="horizontal"
|
98
|
+
|
99
|
+
android:padding="5dp"
|
100
|
+
|
101
|
+
tools:layout_editor_absoluteY="0dp"
|
102
|
+
|
103
|
+
tools:layout_editor_absoluteX="8dp">
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
<CheckBox
|
108
|
+
|
109
|
+
android:id="@+id/cbDrink"
|
110
|
+
|
111
|
+
android:layout_width="wrap_content"
|
112
|
+
|
113
|
+
android:layout_height="wrap_content"
|
114
|
+
|
115
|
+
android:layout_marginLeft="25dp"
|
116
|
+
|
117
|
+
android:layout_marginRight="25dp"
|
118
|
+
|
119
|
+
android:background="#ffffff"
|
120
|
+
|
121
|
+
android:text="@string/cbDrink" />
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
<CheckBox
|
126
|
+
|
127
|
+
android:id="@+id/cbFood"
|
128
|
+
|
129
|
+
android:layout_width="wrap_content"
|
130
|
+
|
131
|
+
android:layout_height="wrap_content"
|
132
|
+
|
133
|
+
android:layout_marginRight="25dp"
|
134
|
+
|
135
|
+
android:background="#ffffff"
|
136
|
+
|
137
|
+
android:text="@string/cbFood" />
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
</LinearLayout>
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
<RadioGroup
|
146
|
+
|
147
|
+
android:layout_width="wrap_content"
|
148
|
+
|
149
|
+
android:layout_height="wrap_content"
|
150
|
+
|
151
|
+
android:background="#df7401"
|
152
|
+
|
153
|
+
android:orientation="horizontal"
|
154
|
+
|
155
|
+
android:padding="5dp"
|
156
|
+
|
157
|
+
tools:layout_editor_absoluteY="0dp"
|
158
|
+
|
159
|
+
tools:layout_editor_absoluteX="0dp">
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
<RadioButton
|
164
|
+
|
165
|
+
android:id="@+id/rbMale"
|
166
|
+
|
167
|
+
android:layout_width="wrap_content"
|
168
|
+
|
169
|
+
android:layout_height="wrap_content"
|
170
|
+
|
171
|
+
android:layout_marginLeft="25dp"
|
172
|
+
|
173
|
+
android:layout_marginRight="25dp"
|
174
|
+
|
175
|
+
android:background="#ffffff"
|
176
|
+
|
177
|
+
android:text="@string/rbMale" />
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
<RadioButton
|
182
|
+
|
183
|
+
android:id="@+id/rbFemale"
|
184
|
+
|
185
|
+
android:layout_width="wrap_content"
|
186
|
+
|
187
|
+
android:layout_height="wrap_content"
|
188
|
+
|
189
|
+
android:background="#ffffff"
|
190
|
+
|
191
|
+
android:text="@string/rbFemale" />
|
192
|
+
|
193
|
+
</RadioGroup>
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
<Spinner
|
198
|
+
|
199
|
+
android:id="@+id/spCurryList"
|
200
|
+
|
201
|
+
android:layout_width="match_parent"
|
202
|
+
|
203
|
+
android:layout_height="wrap_content"
|
204
|
+
|
205
|
+
android:background="#ffffff"
|
206
|
+
|
207
|
+
android:entries="@array/sp_CurryList"
|
208
|
+
|
209
|
+
android:paddingBottom="5dp"
|
210
|
+
|
211
|
+
android:paddingtop="10dp"
|
212
|
+
|
213
|
+
tools:layout_editor_absoluteY="0dp"
|
214
|
+
|
215
|
+
tools:layout_editor_absoluteX="8dp"/>
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
<Button
|
220
|
+
|
221
|
+
android:layout_width="wrap_content"
|
222
|
+
|
223
|
+
android:layout_height="wrap_content"
|
224
|
+
|
225
|
+
android:text="@string/bt_msg"
|
226
|
+
|
227
|
+
tools:layout_editor_absoluteY="0dp"
|
228
|
+
|
229
|
+
tools:layout_editor_absoluteX="0dp" />
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
</LinearLayout>
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
</android.support.constraint.ConstraintLayout>
|