xiaofeng-han / AndroidLibs

GNU General Public License v3.0
183 stars 42 forks source link

Working inside ScrollView #10

Open stefvardalos opened 8 years ago

stefvardalos commented 8 years ago

Hi I cant seem to make it work when my RecycleView is inside a ScrollView no matter what. Am i doing something wrong or that is something this library cant do?

*found out that setting a fixed height on RecycleView it actually works, is any other way to make it work without a fixed height?

MahmoudAlyuDeen commented 7 years ago

This is late but might help someone with the same problem. This made FlowLayoutManager work perfectly with height="wrap_content" inside a scrollview:

FlowLayoutManager flowLayoutManager = new FlowLayoutManager(); flowLayoutManager.setAutoMeasureEnabled(true); flowLayoutManager.setAlignment(Alignment.LEFT); flowLayoutManager.setMeasurementCacheEnabled(false); recyclerView.setLayoutManager(flowLayoutManager);