Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RecyclerView wrap_content with GridLayoutManager

I've seen workarounds with LinearLayoutManager, but not with GridLayoutManager. Any ideas?

like image 429
alan_derua Avatar asked Jun 09 '15 18:06

alan_derua


1 Answers

According to the announce of a support library version 23.2.0 all default layout managers support auto-measurement now. So all WRAP_CONTENT and MATCH_PARENT should work correctly from this moment.

Don't forget to update version of a library in gradle file.

compile 'com.android.support:recyclerview-v7:23.2.0'
like image 194
nicolausYes Avatar answered Oct 23 '22 21:10

nicolausYes