質問編集履歴
3
クラッシュログを載せておきます。
test
CHANGED
File without changes
|
test
CHANGED
@@ -280,11 +280,127 @@
|
|
280
280
|
|
281
281
|
|
282
282
|
|
283
|
+
クラッシュログを載せておきます。
|
284
|
+
|
285
|
+
```
|
286
|
+
|
287
|
+
2020-03-26 18:51:53.846 5070-5070/com.example.expandable_cardview_2 E/AndroidRuntime: FATAL EXCEPTION: main
|
288
|
+
|
283
|
-
|
289
|
+
Process: com.example.expandable_cardview_2, PID: 5070
|
290
|
+
|
284
|
-
|
291
|
+
java.lang.IllegalStateException: v.item_toggle_bottun must not be null
|
292
|
+
|
293
|
+
at com.example.expandable_cardview_2.ExpandableCardViewAdapter$ItemHolder.<init>(ExpandableCardViewAdapter.kt:24)
|
294
|
+
|
295
|
+
at com.example.expandable_cardview_2.ExpandableCardViewAdapter.onCreateViewHolder(ExpandableCardViewAdapter.kt:36)
|
296
|
+
|
297
|
+
at androidx.recyclerview.widget.RecyclerView$Adapter.createViewHolder(RecyclerView.java:7078)
|
298
|
+
|
299
|
+
at androidx.recyclerview.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline(RecyclerView.java:6235)
|
300
|
+
|
301
|
+
at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:6118)
|
302
|
+
|
303
|
+
at androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition(RecyclerView.java:6114)
|
304
|
+
|
305
|
+
at androidx.recyclerview.widget.LinearLayoutManager$LayoutState.next(LinearLayoutManager.java:2303)
|
306
|
+
|
307
|
+
at androidx.recyclerview.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1627)
|
308
|
+
|
309
|
+
at androidx.recyclerview.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1587)
|
310
|
+
|
311
|
+
at androidx.recyclerview.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:665)
|
312
|
+
|
313
|
+
at androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep2(RecyclerView.java:4134)
|
314
|
+
|
315
|
+
at androidx.recyclerview.widget.RecyclerView.dispatchLayout(RecyclerView.java:3851)
|
316
|
+
|
317
|
+
at androidx.recyclerview.widget.RecyclerView.onLayout(RecyclerView.java:4404)
|
318
|
+
|
319
|
+
at android.view.View.layout(View.java:17523)
|
320
|
+
|
321
|
+
at android.view.ViewGroup.layout(ViewGroup.java:5612)
|
322
|
+
|
323
|
+
at androidx.constraintlayout.widget.ConstraintLayout.onLayout(ConstraintLayout.java:1915)
|
324
|
+
|
325
|
+
at android.view.View.layout(View.java:17523)
|
326
|
+
|
327
|
+
at android.view.ViewGroup.layout(ViewGroup.java:5612)
|
328
|
+
|
329
|
+
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
|
330
|
+
|
331
|
+
at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
|
332
|
+
|
333
|
+
at android.view.View.layout(View.java:17523)
|
334
|
+
|
335
|
+
at android.view.ViewGroup.layout(ViewGroup.java:5612)
|
336
|
+
|
337
|
+
at androidx.appcompat.widget.ActionBarOverlayLayout.onLayout(ActionBarOverlayLayout.java:446)
|
338
|
+
|
339
|
+
at android.view.View.layout(View.java:17523)
|
340
|
+
|
341
|
+
at android.view.ViewGroup.layout(ViewGroup.java:5612)
|
342
|
+
|
343
|
+
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
|
344
|
+
|
345
|
+
at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
|
346
|
+
|
347
|
+
at android.view.View.layout(View.java:17523)
|
348
|
+
|
349
|
+
at android.view.ViewGroup.layout(ViewGroup.java:5612)
|
350
|
+
|
351
|
+
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1741)
|
352
|
+
|
353
|
+
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1585)
|
354
|
+
|
355
|
+
at android.widget.LinearLayout.onLayout(LinearLayout.java:1494)
|
356
|
+
|
357
|
+
at android.view.View.layout(View.java:17523)
|
358
|
+
|
359
|
+
at android.view.ViewGroup.layout(ViewGroup.java:5612)
|
360
|
+
|
361
|
+
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
|
362
|
+
|
363
|
+
at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
|
364
|
+
|
365
|
+
at com.android.internal.policy.DecorView.onLayout(DecorView.java:724)
|
366
|
+
|
367
|
+
at android.view.View.layout(View.java:17523)
|
368
|
+
|
369
|
+
at android.view.ViewGroup.layout(ViewGroup.java:5612)
|
370
|
+
|
371
|
+
at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2342)
|
372
|
+
|
373
|
+
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2069)
|
374
|
+
|
375
|
+
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1246)
|
376
|
+
|
377
|
+
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6301)
|
378
|
+
|
379
|
+
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:871)
|
380
|
+
|
381
|
+
at android.view.Choreographer.doCallbacks(Choreographer.java:683)
|
382
|
+
|
383
|
+
at android.view.Choreographer.doFrame(Choreographer.java:619)
|
384
|
+
|
385
|
+
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:857)
|
386
|
+
|
387
|
+
at android.os.Handler.handleCallback(Handler.java:751)
|
388
|
+
|
389
|
+
at android.os.Handler.dispatchMessage(Handler.java:95)
|
390
|
+
|
285
|
-
|
391
|
+
at android.os.Looper.loop(Looper.java:154)
|
392
|
+
|
286
|
-
|
393
|
+
at android.app.ActivityThread.main(ActivityThread.java:6077)
|
394
|
+
|
287
|
-
|
395
|
+
at java.lang.reflect.Method.invoke(Native Method)
|
396
|
+
|
397
|
+
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
|
398
|
+
|
399
|
+
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)
|
400
|
+
|
401
|
+
|
402
|
+
|
403
|
+
```
|
288
404
|
|
289
405
|
### 補足情報(FW/ツールのバージョンなど)
|
290
406
|
|
2
タイトルを変更しました。
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
CardView で、ボタンを押したら Card が出てくるはずだが、ボタンを押すとアプリが強制終了する
|
test
CHANGED
File without changes
|
1
やりたいことを、より詳しく書きました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -26,6 +26,8 @@
|
|
26
26
|
|
27
27
|
|
28
28
|
|
29
|
+
アプリがダウンせず、ちゃんと黄色いリストが出てくるようにしたい。
|
30
|
+
|
29
31
|
### 該当のソースコード
|
30
32
|
|
31
33
|
|