nikhilpanju / RecyclerViewEnhanced

Android Library to provide swipe, click and other functionality to RecyclerView
1.05k stars 185 forks source link

In case of items with variable height wrap_content of background layout is not working #17

Open pruthvirajha opened 8 years ago

pruthvirajha commented 8 years ago

Each item in the recyclerview has its own height. Background-layout's height is auto calculated based on foreground layout.'s height But it is not getting recalculated properly

pruthvirajha commented 8 years ago

screenshot_20160914-151522

This is what happens in the case of variable item height.

nikhilpanju commented 7 years ago

This particular case has been tested. I will look into it more and probably provide a better sample that includes this use case.

aaaldo commented 7 years ago

Hi everyone, i solved this issue by using a constraint layout instead as the base layout of the swipable cell. This type of layout seems to better handle size's variation. Hope it can help waiting for a true fix ! Cheers

deezaster commented 7 years ago

A constraint layout instead of the relative layout (the root container) or on the level of RowBG or RowFG?