質問編集履歴
3
レイアウト追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -106,7 +106,7 @@
|
|
106
106
|
|
107
107
|
```
|
108
108
|
|
109
|
-
#### RecyclerView の レイアウト
|
109
|
+
#### RecyclerView の レイアウト / fragment_dialog_calender.xml
|
110
110
|
|
111
111
|
```xml
|
112
112
|
|
@@ -350,7 +350,7 @@
|
|
350
350
|
|
351
351
|
```
|
352
352
|
|
353
|
-
#### RecyclerView のリストレイアウト
|
353
|
+
#### RecyclerView のリストレイアウト / list_item_calender
|
354
354
|
|
355
355
|
```xml
|
356
356
|
|
2
レイアウト追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -346,96 +346,74 @@
|
|
346
346
|
|
347
347
|
</androidx.recyclerview.widget.RecyclerView>
|
348
348
|
|
349
|
-
|
350
|
-
|
351
|
-
<com.google.android.material.chip.ChipGroup
|
352
|
-
|
353
|
-
android:layout_width="match_parent"
|
354
|
-
|
355
|
-
android:layout_height="wrap_content"
|
356
|
-
|
357
|
-
android:layout_marginLeft="16dp"
|
358
|
-
|
359
|
-
android:layout_marginTop="8dp"
|
360
|
-
|
361
|
-
android:layout_marginBottom="8dp"
|
362
|
-
|
363
|
-
app:singleSelection="true">
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
<!--TODO デザイン変更-->
|
368
|
-
|
369
|
-
<com.google.android.material.chip.Chip
|
370
|
-
|
371
|
-
android:layout_width="wrap_content"
|
372
|
-
|
373
|
-
android:layout_height="wrap_content"
|
374
|
-
|
375
|
-
android:checkable="true"
|
376
|
-
|
377
|
-
app:chipBackgroundColor="@color/colorGS06_White"
|
378
|
-
|
379
|
-
app:chipStrokeWidth="1dp"
|
380
|
-
|
381
|
-
app:chipStrokeColor="@color/colorGS04_LightGrey"
|
382
|
-
|
383
|
-
android:textColor="@color/colorGS03_Grey"
|
384
|
-
|
385
|
-
android:text="Inbox"/>
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
<com.google.android.material.chip.Chip
|
390
|
-
|
391
|
-
android:layout_width="wrap_content"
|
392
|
-
|
393
|
-
android:layout_height="wrap_content"
|
394
|
-
|
395
|
-
android:layout_marginLeft="8dp"
|
396
|
-
|
397
|
-
android:checkable="true"
|
398
|
-
|
399
|
-
app:chipBackgroundColor="@color/colorGS06_White"
|
400
|
-
|
401
|
-
app:chipStrokeWidth="1dp"
|
402
|
-
|
403
|
-
app:chipStrokeColor="@color/colorGS04_LightGrey"
|
404
|
-
|
405
|
-
android:textColor="@color/colorGS03_Grey"
|
406
|
-
|
407
|
-
android:text="次にやる"/>
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
<com.google.android.material.chip.Chip
|
412
|
-
|
413
|
-
android:layout_width="wrap_content"
|
414
|
-
|
415
|
-
android:layout_height="wrap_content"
|
416
|
-
|
417
|
-
android:layout_marginLeft="8dp"
|
418
|
-
|
419
|
-
android:checkable="true"
|
420
|
-
|
421
|
-
app:chipBackgroundColor="@color/colorGS06_White"
|
422
|
-
|
423
|
-
app:chipStrokeWidth="1dp"
|
424
|
-
|
425
|
-
app:chipStrokeColor="@color/colorGS04_LightGrey"
|
426
|
-
|
427
|
-
android:textColor="@color/colorGS03_Grey"
|
428
|
-
|
429
|
-
android:text="いつか"/>
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
</com.google.android.material.chip.ChipGroup>
|
434
|
-
|
435
349
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
436
350
|
|
437
351
|
```
|
438
352
|
|
353
|
+
#### RecyclerView のリストレイアウト
|
354
|
+
|
355
|
+
```xml
|
356
|
+
|
357
|
+
<?xml version="1.0" encoding="utf-8"?>
|
358
|
+
|
359
|
+
<androidx.appcompat.widget.LinearLayoutCompat
|
360
|
+
|
361
|
+
xmlns:android="http://schemas.android.com/apk/res/android"
|
362
|
+
|
363
|
+
android:orientation="horizontal"
|
364
|
+
|
365
|
+
android:layout_width="wrap_content"
|
366
|
+
|
367
|
+
android:layout_height="wrap_content">
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
<androidx.appcompat.widget.LinearLayoutCompat
|
372
|
+
|
373
|
+
android:layout_width="0dp"
|
374
|
+
|
375
|
+
android:layout_height="48dp"
|
376
|
+
|
377
|
+
android:layout_weight="1"
|
378
|
+
|
379
|
+
android:orientation="horizontal"
|
380
|
+
|
381
|
+
android:gravity="center">
|
382
|
+
|
383
|
+
|
384
|
+
|
385
|
+
<androidx.appcompat.widget.AppCompatTextView
|
386
|
+
|
387
|
+
android:id="@+id/calender_item_date"
|
388
|
+
|
389
|
+
android:layout_width="36dp"
|
390
|
+
|
391
|
+
android:layout_height="36dp"
|
392
|
+
|
393
|
+
android:background="@drawable/bg_circle"
|
394
|
+
|
395
|
+
android:backgroundTint="@color/colorGS06_White"
|
396
|
+
|
397
|
+
android:gravity="center"
|
398
|
+
|
399
|
+
android:layout_gravity="center"
|
400
|
+
|
401
|
+
android:textSize="14sp"
|
402
|
+
|
403
|
+
android:textColor="@color/colorGS01_Black"
|
404
|
+
|
405
|
+
android:text="1"/>
|
406
|
+
|
407
|
+
|
408
|
+
|
409
|
+
</androidx.appcompat.widget.LinearLayoutCompat>
|
410
|
+
|
411
|
+
|
412
|
+
|
413
|
+
</androidx.appcompat.widget.LinearLayoutCompat>
|
414
|
+
|
415
|
+
```
|
416
|
+
|
439
417
|
|
440
418
|
|
441
419
|
### 補足
|
1
レイアウト追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
###
|
1
|
+
### 実現したいこと
|
2
|
-
|
2
|
+
|
3
|
-
以下
|
3
|
+
以下のような datepicker を独自実装したいと考えています。
|
4
|
-
|
4
|
+
|
5
|
-
|
5
|
+
※日付部分を recyclerView で実装。
|
6
6
|
|
7
7
|
|
8
8
|
|
@@ -10,15 +10,9 @@
|
|
10
10
|
|
11
11
|
|
12
12
|
|
13
|
-
|
14
|
-
|
15
13
|
### 発生している問題
|
16
14
|
|
17
|
-
dialog 内で recyclerView のデータを表示させることができ
|
15
|
+
dialog 内で recyclerView のデータを表示させることができない。
|
18
|
-
|
19
|
-
以下サンプルのような状態になりましたが、解決方法がわかりません。
|
20
|
-
|
21
|
-
※ ダイアログ下部の OK / キャンセルはまだ未実装のため、表示されておりません。
|
22
16
|
|
23
17
|
|
24
18
|
|
@@ -114,7 +108,333 @@
|
|
114
108
|
|
115
109
|
#### RecyclerView の レイアウト
|
116
110
|
|
111
|
+
```xml
|
112
|
+
|
113
|
+
<?xml version="1.0" encoding="utf-8"?>
|
114
|
+
|
115
|
+
<androidx.appcompat.widget.LinearLayoutCompat
|
116
|
+
|
117
|
+
xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"
|
118
|
+
|
119
|
+
android:orientation="vertical"
|
120
|
+
|
121
|
+
android:layout_width="match_parent"
|
122
|
+
|
123
|
+
android:layout_height="match_parent">
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
<androidx.appcompat.widget.LinearLayoutCompat
|
128
|
+
|
129
|
+
android:layout_width="wrap_content"
|
130
|
+
|
131
|
+
android:layout_height="48dp"
|
132
|
+
|
133
|
+
android:layout_marginTop="8dp"
|
134
|
+
|
135
|
+
android:orientation="horizontal"
|
136
|
+
|
137
|
+
android:gravity="center"
|
138
|
+
|
139
|
+
android:layout_gravity="center">
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
<androidx.appcompat.widget.AppCompatImageButton
|
144
|
+
|
145
|
+
android:layout_width="wrap_content"
|
146
|
+
|
147
|
+
android:layout_height="wrap_content"
|
148
|
+
|
149
|
+
android:padding="4dp"
|
150
|
+
|
151
|
+
android:layout_marginRight="32dp"
|
152
|
+
|
153
|
+
android:background="@android:color/transparent"
|
154
|
+
|
155
|
+
android:tint="@color/colorGS01_Black"
|
156
|
+
|
157
|
+
android:src="@drawable/ic_chevron_left_24dp"/>
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
<androidx.appcompat.widget.AppCompatTextView
|
162
|
+
|
163
|
+
android:layout_width="wrap_content"
|
164
|
+
|
165
|
+
android:layout_height="wrap_content"
|
166
|
+
|
167
|
+
android:text="2019年1月"
|
168
|
+
|
169
|
+
android:textSize="16sp"
|
170
|
+
|
171
|
+
android:textColor="@color/colorGS01_Black"/>
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
<androidx.appcompat.widget.AppCompatImageButton
|
176
|
+
|
177
|
+
android:layout_width="wrap_content"
|
178
|
+
|
179
|
+
android:layout_height="wrap_content"
|
180
|
+
|
181
|
+
android:padding="4dp"
|
182
|
+
|
183
|
+
android:layout_marginLeft="32dp"
|
184
|
+
|
185
|
+
android:background="@android:color/transparent"
|
186
|
+
|
187
|
+
android:tint="@color/colorGS01_Black"
|
188
|
+
|
189
|
+
android:src="@drawable/ic_chevron_right_24dp"/>
|
190
|
+
|
191
|
+
</androidx.appcompat.widget.LinearLayoutCompat>
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
<androidx.appcompat.widget.LinearLayoutCompat
|
196
|
+
|
197
|
+
android:layout_width="match_parent"
|
198
|
+
|
199
|
+
android:layout_height="wrap_content"
|
200
|
+
|
201
|
+
android:orientation="horizontal"
|
202
|
+
|
203
|
+
android:layout_gravity="center">
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
<androidx.appcompat.widget.AppCompatTextView
|
208
|
+
|
209
|
+
android:layout_width="0dp"
|
210
|
+
|
211
|
+
android:layout_height="48dp"
|
212
|
+
|
213
|
+
android:layout_weight="1"
|
214
|
+
|
215
|
+
android:gravity="center"
|
216
|
+
|
217
|
+
android:text="月"
|
218
|
+
|
219
|
+
android:textSize="14sp"
|
220
|
+
|
221
|
+
android:textColor="@color/colorGS03_Grey"/>
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
<androidx.appcompat.widget.AppCompatTextView
|
226
|
+
|
227
|
+
android:layout_width="0dp"
|
228
|
+
|
229
|
+
android:layout_height="48dp"
|
230
|
+
|
231
|
+
android:layout_weight="1"
|
232
|
+
|
233
|
+
android:gravity="center"
|
234
|
+
|
235
|
+
android:text="火"
|
236
|
+
|
237
|
+
android:textSize="14sp"
|
238
|
+
|
239
|
+
android:textColor="@color/colorGS03_Grey"/>
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
<androidx.appcompat.widget.AppCompatTextView
|
244
|
+
|
245
|
+
android:layout_width="0dp"
|
246
|
+
|
247
|
+
android:layout_height="48dp"
|
248
|
+
|
249
|
+
android:layout_weight="1"
|
250
|
+
|
251
|
+
android:gravity="center"
|
252
|
+
|
253
|
+
android:text="水"
|
254
|
+
|
255
|
+
android:textSize="14sp"
|
256
|
+
|
257
|
+
android:textColor="@color/colorGS03_Grey"/>
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
<androidx.appcompat.widget.AppCompatTextView
|
262
|
+
|
263
|
+
android:layout_width="0dp"
|
264
|
+
|
265
|
+
android:layout_height="48dp"
|
266
|
+
|
267
|
+
android:layout_weight="1"
|
268
|
+
|
269
|
+
android:gravity="center"
|
270
|
+
|
271
|
+
android:text="木"
|
272
|
+
|
273
|
+
android:textSize="14sp"
|
274
|
+
|
275
|
+
android:textColor="@color/colorGS03_Grey"/>
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
<androidx.appcompat.widget.AppCompatTextView
|
280
|
+
|
281
|
+
android:layout_width="0dp"
|
282
|
+
|
283
|
+
android:layout_height="48dp"
|
284
|
+
|
285
|
+
android:layout_weight="1"
|
286
|
+
|
287
|
+
android:gravity="center"
|
288
|
+
|
289
|
+
android:text="金"
|
290
|
+
|
291
|
+
android:textSize="14sp"
|
292
|
+
|
293
|
+
android:textColor="@color/colorGS03_Grey"/>
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
<androidx.appcompat.widget.AppCompatTextView
|
298
|
+
|
299
|
+
android:layout_width="0dp"
|
300
|
+
|
301
|
+
android:layout_height="48dp"
|
302
|
+
|
303
|
+
android:layout_weight="1"
|
304
|
+
|
305
|
+
android:gravity="center"
|
306
|
+
|
307
|
+
android:text="土"
|
308
|
+
|
309
|
+
android:textSize="14sp"
|
310
|
+
|
311
|
+
android:textColor="@color/colorGS03_Grey"/>
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
<androidx.appcompat.widget.AppCompatTextView
|
316
|
+
|
317
|
+
android:layout_width="0dp"
|
318
|
+
|
319
|
+
android:layout_height="48dp"
|
320
|
+
|
321
|
+
android:layout_weight="1"
|
322
|
+
|
323
|
+
android:gravity="center"
|
324
|
+
|
325
|
+
android:text="日"
|
326
|
+
|
327
|
+
android:textSize="14sp"
|
328
|
+
|
329
|
+
android:textColor="@color/colorGS03_Grey"/>
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
</androidx.appcompat.widget.LinearLayoutCompat>
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
<androidx.recyclerview.widget.RecyclerView
|
338
|
+
|
339
|
+
android:id="@+id/date_list_in_calender"
|
340
|
+
|
341
|
+
android:layout_width="match_parent"
|
342
|
+
|
343
|
+
android:layout_height="wrap_content">
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
</androidx.recyclerview.widget.RecyclerView>
|
348
|
+
|
349
|
+
|
350
|
+
|
351
|
+
<com.google.android.material.chip.ChipGroup
|
352
|
+
|
353
|
+
android:layout_width="match_parent"
|
354
|
+
|
355
|
+
android:layout_height="wrap_content"
|
356
|
+
|
357
|
+
android:layout_marginLeft="16dp"
|
358
|
+
|
359
|
+
android:layout_marginTop="8dp"
|
360
|
+
|
361
|
+
android:layout_marginBottom="8dp"
|
362
|
+
|
363
|
+
app:singleSelection="true">
|
364
|
+
|
365
|
+
|
366
|
+
|
117
|
-
|
367
|
+
<!--TODO デザイン変更-->
|
368
|
+
|
369
|
+
<com.google.android.material.chip.Chip
|
370
|
+
|
371
|
+
android:layout_width="wrap_content"
|
372
|
+
|
373
|
+
android:layout_height="wrap_content"
|
374
|
+
|
375
|
+
android:checkable="true"
|
376
|
+
|
377
|
+
app:chipBackgroundColor="@color/colorGS06_White"
|
378
|
+
|
379
|
+
app:chipStrokeWidth="1dp"
|
380
|
+
|
381
|
+
app:chipStrokeColor="@color/colorGS04_LightGrey"
|
382
|
+
|
383
|
+
android:textColor="@color/colorGS03_Grey"
|
384
|
+
|
385
|
+
android:text="Inbox"/>
|
386
|
+
|
387
|
+
|
388
|
+
|
389
|
+
<com.google.android.material.chip.Chip
|
390
|
+
|
391
|
+
android:layout_width="wrap_content"
|
392
|
+
|
393
|
+
android:layout_height="wrap_content"
|
394
|
+
|
395
|
+
android:layout_marginLeft="8dp"
|
396
|
+
|
397
|
+
android:checkable="true"
|
398
|
+
|
399
|
+
app:chipBackgroundColor="@color/colorGS06_White"
|
400
|
+
|
401
|
+
app:chipStrokeWidth="1dp"
|
402
|
+
|
403
|
+
app:chipStrokeColor="@color/colorGS04_LightGrey"
|
404
|
+
|
405
|
+
android:textColor="@color/colorGS03_Grey"
|
406
|
+
|
407
|
+
android:text="次にやる"/>
|
408
|
+
|
409
|
+
|
410
|
+
|
411
|
+
<com.google.android.material.chip.Chip
|
412
|
+
|
413
|
+
android:layout_width="wrap_content"
|
414
|
+
|
415
|
+
android:layout_height="wrap_content"
|
416
|
+
|
417
|
+
android:layout_marginLeft="8dp"
|
418
|
+
|
419
|
+
android:checkable="true"
|
420
|
+
|
421
|
+
app:chipBackgroundColor="@color/colorGS06_White"
|
422
|
+
|
423
|
+
app:chipStrokeWidth="1dp"
|
424
|
+
|
425
|
+
app:chipStrokeColor="@color/colorGS04_LightGrey"
|
426
|
+
|
427
|
+
android:textColor="@color/colorGS03_Grey"
|
428
|
+
|
429
|
+
android:text="いつか"/>
|
430
|
+
|
431
|
+
|
432
|
+
|
433
|
+
</com.google.android.material.chip.ChipGroup>
|
434
|
+
|
435
|
+
</androidx.appcompat.widget.LinearLayoutCompat>
|
436
|
+
|
437
|
+
```
|
118
438
|
|
119
439
|
|
120
440
|
|