Open ashteligenz opened 5 years ago
@ashteligenz What are you trying to achieve? We've implemented this within a project where content is scrollable inside the BottomSheet.
@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.
@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)
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);
@butonium Yeah sure, Here is my sample project you can check it: BottomSheetSample.zip
Any updates?
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.
@AlexStefan BottomSheet is not scrolling with content. There is no event raised for scrolling.