How do I make WRAP_CONTENT work on a RecyclerView

后端 未结 19 1874
自闭症患者
自闭症患者 2020-11-22 12:49

I have a DialogFragment that contains a RecyclerView (a list of cards).

Within this RecyclerView are one or more CardVi

19条回答
  •  暖寄归人
    2020-11-22 13:43

    From Android Support Library 23.2.1 update, all WRAP_CONTENT should work correctly.

    Please update version of a library in gradle file OR to further :

    compile 'com.android.support:recyclerview-v7:23.2.1'
    

    solved some issue like Fixed bugs related to various measure-spec methods

    Check http://developer.android.com/tools/support-library/features.html#v7-recyclerview

    you can check Support Library revision history

提交回复
热议问题