NullPointerException in dissapearence animation of RecyclerView from support v.23.2.0

后端 未结 3 549
眼角桃花
眼角桃花 2021-01-05 18:09


In new RecyclerView we can use wrap_content for height (or for width). So Google fixed bug - https://code.google.com/p/android/issues/detail?id=74772

3条回答
  •  灰色年华
    2021-01-05 18:33

    Google has made some statement about the usage of the RecyclerView with the version 23.2 of the Support Library.

    Link to the blog post (check the RecyclerView section): http://android-developers.blogspot.com.br/2016/02/android-support-library-232.html

    Due to this change, make sure to double check the layout parameters of your item views: previously ignored layout parameters (such as MATCH_PARENT in the scroll direction) will now be fully respected.

    I would suggest you to try to change your RecyclerView's layout_height param to match_parent. Let us know if it works.

提交回复
热议问题