grendio / XBottomSheet

Xamarin Customizable Bottomsheet - iOS & Android
MIT License
37 stars 3 forks source link

Scrolling Issue in Bottom Sheet #4

Open ashteligenz opened 5 years ago

ashteligenz commented 5 years ago

@AlexStefan BottomSheet is not scrolling with content. There is no event raised for scrolling.

AlexStefan commented 5 years ago

@ashteligenz What are you trying to achieve? We've implemented this within a project where content is scrollable inside the BottomSheet.

ashteligenz commented 5 years ago

@AlexStefan when i pass a view which already have a scroll view inside it then that is not scrolling, This problem is in Android only not in iOS it is working fine (Scrolling) in iOS.

butonium commented 5 years ago

@ashteligenz I will take a look and come with a solution. A repro case (sample project) from you can improve the response time. (in case the issue is related to the Xamarin.Forms)

butonium commented 5 years ago

Meanwhile, if you want to disable the drag effect on BottomSheet and enable the scroll of the contentView you can use this workaround:

var bottomSheet = FindViewById<XBottomSheetView>(Resource.Id.BottomSheet); var behavior = (AnchoredBottomSheetBehavior) ReflectionHelper.GetFieldValue(bottomSheet, "behavior"); behavior.SetFieldValue("allowUserDragging", false);

ashteligenz commented 5 years ago

@butonium Yeah sure, Here is my sample project you can check it: BottomSheetSample.zip

ashteligenz commented 5 years ago

Any updates?

butonium commented 5 years ago

Sorry for the delayed response, I am working on a new version that will have a draggable area in order to avoid the behaviour overlapping that is causing this issue. I hope that by the end of this week I will upload it.