質問編集履歴
1
コードの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,24 +10,422 @@
|
|
10
10
|
|
11
11
|
|
12
12
|
|
13
|
+
<?xml version="1.0" encoding="utf-8"?>
|
14
|
+
|
15
|
+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
16
|
+
|
17
|
+
xmlns:tools="http://schemas.android.com/tools"
|
18
|
+
|
19
|
+
android:layout_width="match_parent"
|
20
|
+
|
21
|
+
android:layout_height="match_parent"
|
22
|
+
|
23
|
+
android:orientation="vertical"
|
24
|
+
|
25
|
+
tools:context="com.example.android.sample.keiba.CalcActivity">
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
<LinearLayout
|
36
|
+
|
37
|
+
android:layout_width="match_parent"
|
38
|
+
|
39
|
+
android:layout_height="wrap_content"
|
40
|
+
|
41
|
+
android:orientation="horizontal">
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<Button
|
50
|
+
|
51
|
+
android:id="@+id/pushRaceOrderButton"
|
52
|
+
|
53
|
+
android:layout_width="0dp"
|
54
|
+
|
55
|
+
android:layout_weight="1"
|
56
|
+
|
57
|
+
android:layout_height="wrap_content"
|
58
|
+
|
59
|
+
android:text="出走表" />
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
<Button
|
66
|
+
|
67
|
+
android:id="@+id/pushCalcButton"
|
68
|
+
|
69
|
+
android:layout_width="0dp"
|
70
|
+
|
71
|
+
android:layout_weight="1"
|
72
|
+
|
73
|
+
android:layout_height="wrap_content"
|
74
|
+
|
75
|
+
android:text="予想画面" />
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
<Button
|
84
|
+
|
85
|
+
android:id="@+id/pushTotalButton"
|
86
|
+
|
87
|
+
android:layout_width="0dp"
|
88
|
+
|
89
|
+
android:layout_weight="1"
|
90
|
+
|
91
|
+
android:layout_height="wrap_content"
|
92
|
+
|
93
|
+
android:text="スコア一覧" />
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
<Button
|
102
|
+
|
103
|
+
android:id="@+id/pushChatButton"
|
104
|
+
|
105
|
+
android:layout_width="0dp"
|
106
|
+
|
107
|
+
android:layout_weight="1"
|
108
|
+
|
109
|
+
android:layout_height="wrap_content"
|
110
|
+
|
111
|
+
android:text="チャット" />
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
<Button
|
118
|
+
|
119
|
+
android:id="@+id/pushAccountButton"
|
120
|
+
|
121
|
+
android:layout_width="0dp"
|
122
|
+
|
123
|
+
android:layout_height="wrap_content"
|
124
|
+
|
125
|
+
android:layout_weight="1"
|
126
|
+
|
127
|
+
android:text="アカウント"
|
128
|
+
|
129
|
+
/>
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
</LinearLayout>
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
<android.support.v7.widget.Toolbar
|
142
|
+
|
143
|
+
android:id="@+id/tool_bar"
|
144
|
+
|
145
|
+
android:layout_width="match_parent"
|
146
|
+
|
147
|
+
android:layout_height="wrap_content"
|
148
|
+
|
149
|
+
android:minHeight="?attr/actionBarSize"
|
150
|
+
|
151
|
+
>
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
<LinearLayout
|
160
|
+
|
161
|
+
android:layout_width="match_parent"
|
162
|
+
|
163
|
+
android:layout_height="wrap_content">
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
<Spinner
|
168
|
+
|
169
|
+
android:id="@+id/raceSpinner"
|
170
|
+
|
171
|
+
android:layout_width="0dp"
|
172
|
+
|
173
|
+
android:layout_weight="1"
|
174
|
+
|
175
|
+
android:layout_height="wrap_content"
|
176
|
+
|
177
|
+
android:paddingLeft="10dp"
|
178
|
+
|
179
|
+
android:popupBackground="#ccffffff"
|
180
|
+
|
181
|
+
/>
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
<Spinner
|
186
|
+
|
187
|
+
android:id="@+id/hourseSpinner"
|
188
|
+
|
189
|
+
android:layout_width="0dp"
|
190
|
+
|
191
|
+
android:layout_weight="1"
|
192
|
+
|
193
|
+
android:layout_height="wrap_content"
|
194
|
+
|
195
|
+
android:paddingLeft="10dp"
|
196
|
+
|
197
|
+
android:popupBackground="#ccffffff" />
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
</LinearLayout>
|
204
|
+
|
205
|
+
</android.support.v7.widget.Toolbar>
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
<!--この下のviewPagerにスクロールをつけて、そのweightをセットする-->
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
|
13
223
|
<android.support.v4.view.ViewPager
|
14
224
|
|
15
225
|
android:id="@+id/pager"
|
16
226
|
|
227
|
+
android:layout_width="wrap_content"
|
228
|
+
|
229
|
+
android:layout_height="wrap_content"
|
230
|
+
|
231
|
+
/>
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
<GridLayout
|
244
|
+
|
245
|
+
android:id="@+id/number_input"
|
246
|
+
|
17
247
|
android:layout_width="match_parent"
|
18
248
|
|
19
|
-
android:layout_height="wrap_content"/>
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
<TextView
|
26
|
-
|
27
|
-
android:layout_width="wrap_content"
|
28
|
-
|
29
249
|
android:layout_height="wrap_content"
|
30
250
|
|
251
|
+
android:columnCount="6"
|
252
|
+
|
253
|
+
android:rowCount="3">
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
<Button
|
260
|
+
|
261
|
+
android:layout_width="wrap_content"
|
262
|
+
|
263
|
+
android:layout_height="wrap_content"
|
264
|
+
|
265
|
+
android:text="1"
|
266
|
+
|
267
|
+
android:layout_column="1"
|
268
|
+
|
269
|
+
android:layout_row="1"
|
270
|
+
|
31
|
-
android:text="
|
271
|
+
android:textSize="15sp"/>
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
<Button
|
276
|
+
|
277
|
+
android:layout_width="wrap_content"
|
278
|
+
|
279
|
+
android:layout_height="wrap_content"
|
280
|
+
|
281
|
+
android:text="2"
|
282
|
+
|
283
|
+
android:layout_column="2"
|
284
|
+
|
285
|
+
android:layout_row="1"
|
286
|
+
|
287
|
+
android:textSize="15sp"/>
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
<Button
|
292
|
+
|
293
|
+
android:layout_width="wrap_content"
|
294
|
+
|
295
|
+
android:layout_height="wrap_content"
|
296
|
+
|
297
|
+
android:text="3"
|
298
|
+
|
299
|
+
android:layout_column="3"
|
300
|
+
|
301
|
+
android:layout_row="1"
|
302
|
+
|
303
|
+
android:textSize="15sp"/>
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
<Button
|
308
|
+
|
309
|
+
android:layout_width="wrap_content"
|
310
|
+
|
311
|
+
android:layout_height="wrap_content"
|
312
|
+
|
313
|
+
android:text="4"
|
314
|
+
|
315
|
+
android:layout_column="4"
|
316
|
+
|
317
|
+
android:layout_row="1"
|
318
|
+
|
319
|
+
android:textSize="15sp"/>
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
<Button
|
324
|
+
|
325
|
+
android:layout_width="wrap_content"
|
326
|
+
|
327
|
+
android:layout_height="wrap_content"
|
328
|
+
|
329
|
+
android:text="5"
|
330
|
+
|
331
|
+
android:layout_column="5"
|
332
|
+
|
333
|
+
android:layout_row="1"
|
334
|
+
|
335
|
+
android:textSize="15sp"/>
|
336
|
+
|
337
|
+
|
338
|
+
|
339
|
+
<Button
|
340
|
+
|
341
|
+
android:layout_width="wrap_content"
|
342
|
+
|
343
|
+
android:layout_height="wrap_content"
|
344
|
+
|
345
|
+
android:text="6"
|
346
|
+
|
347
|
+
android:layout_column="1"
|
348
|
+
|
349
|
+
android:layout_row="2"
|
350
|
+
|
351
|
+
android:textSize="15sp"/>
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
<Button
|
356
|
+
|
357
|
+
android:layout_width="wrap_content"
|
358
|
+
|
359
|
+
android:layout_height="wrap_content"
|
360
|
+
|
361
|
+
android:text="7"
|
362
|
+
|
363
|
+
android:layout_column="2"
|
364
|
+
|
365
|
+
android:layout_row="2"
|
366
|
+
|
367
|
+
android:textSize="15sp"/>
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
<Button
|
372
|
+
|
373
|
+
android:layout_width="wrap_content"
|
374
|
+
|
375
|
+
android:layout_height="wrap_content"
|
376
|
+
|
377
|
+
android:text="8"
|
378
|
+
|
379
|
+
android:layout_column="3"
|
380
|
+
|
381
|
+
android:layout_row="2"
|
382
|
+
|
383
|
+
android:textSize="15sp"/>
|
384
|
+
|
385
|
+
|
386
|
+
|
387
|
+
<Button
|
388
|
+
|
389
|
+
android:layout_width="wrap_content"
|
390
|
+
|
391
|
+
android:layout_height="wrap_content"
|
392
|
+
|
393
|
+
android:text="9"
|
394
|
+
|
395
|
+
android:layout_column="4"
|
396
|
+
|
397
|
+
android:layout_row="2"
|
398
|
+
|
399
|
+
android:textSize="15sp"/>
|
400
|
+
|
401
|
+
|
402
|
+
|
403
|
+
<Button
|
404
|
+
|
405
|
+
android:layout_width="wrap_content"
|
406
|
+
|
407
|
+
android:layout_height="wrap_content"
|
408
|
+
|
409
|
+
android:text="10"
|
410
|
+
|
411
|
+
android:layout_column="5"
|
412
|
+
|
413
|
+
android:layout_row="2"
|
414
|
+
|
415
|
+
android:textSize="15sp"/>
|
416
|
+
|
417
|
+
|
418
|
+
|
419
|
+
</GridLayout>
|
420
|
+
|
421
|
+
|
422
|
+
|
423
|
+
|
424
|
+
|
425
|
+
|
426
|
+
|
427
|
+
|
428
|
+
|
429
|
+
</LinearLayout>
|
32
430
|
|
33
431
|
```
|