Using CardView and RecyclerView in my layout files throws an exception

前端 未结 4 1276
[愿得一人]
[愿得一人] 2021-02-13 20:06

So I\'ve been taking a shot at the Material Design of Android Preview L. I imported both the CardView and the RecyclerView libraries.

I use the

4条回答
  •  [愿得一人]
    2021-02-13 21:05

    This is a bug in Android Studio. The preview tool does not know how do initialize the widgets. I believe so, because the same exception is thrown from your app if you forget to call recyclerView.setLayoutManager() in your code.

提交回复
热议问题