trafi / anchor-bottom-sheet-behavior

BottomSheet behavior with collapsed, expanded and anchor states
Apache License 2.0
173 stars 25 forks source link

notifyDataSetChanged will drop bottomsheet height #8

Open sOt0nGx opened 6 years ago

sOt0nGx commented 6 years ago

Whenever the RecyclerView refresh with Glide or notifyDataSetChanged, the height of the BottomSheet will drop.

I tried to move it up again with anchorBottomSheetBehavior.setState(AnchorBottomSheetBehavior.STATE_COLLAPSED); but does not work.

State was not changed but height is lowered.

justasm commented 6 years ago

Hi, could you please provide more information on how to reproduce this issue? We use the sheet with RecyclerViews extensively and have not observed this. Do you have a sample project that demonstrates this behavior?

VishnuVsuresh commented 6 years ago

@sOt0nGx Could you please help me for resolving this matter if you have the solution

sOt0nGx commented 6 years ago

Hi, could you please provide more information on how to reproduce this issue? We use the sheet with RecyclerViews extensively and have not observed this. Do you have a sample project that demonstrates this behavior? If the bottomsheet height is match_parent it won't be a problem but if it is not, it will jump when scrolling down. I've made a demo which anyone can download https://drive.google.com/file/d/1fpzlZsclGuHSgryZl--rHph5DLHESJKo/view?usp=sharing

I don't have the solution but I've changed to other libraries.

jkm123 commented 5 years ago

Hi, could you please provide more information on how to reproduce this issue? We use the sheet with RecyclerViews extensively and have not observed this. Do you have a sample project that demonstrates this behavior? If the bottomsheet height is match_parent it won't be a problem but if it is not, it will jump when scrolling down. I've made a demo which anyone can download https://drive.google.com/file/d/1fpzlZsclGuHSgryZl--rHph5DLHESJKo/view?usp=sharing

I don't have the solution but I've changed to other libraries.

Could you tell me the name of the libraries you using now?

VanishaGaba commented 2 years ago

Hi, Can you help I am facing the same issue