-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: is it possible to disable dimming, make content above touchable, and scroll? #20
Comments
The library functions primarily as a dialog, so the request behavior isn't supported easily. The view used in Google Maps is most likely not a dialog but apart of the layout. You can wrap your view in a CollapsingView and add it to your view and manipulate it yourself. |
@Kennyc1012 Too bad. |
Heres the approach I would take if I were try to replicate the Google Maps app. Activity A- The wrapping activity for the views. Would contain 2 fragments. The activity theme should extend from Map Fragment- This is where the map view would be held and manipulated. There should NO actionbar/toolbar here Bottomsheet Fragment- This is where the actionbar/toolbar will be. The fragment will be added with a transaction when wanting to me shown. Upon dismissing by either the back arrow or dragging, the fragment should be removed from the fragment manager. If communication is needed between both fragments and/or with the parent activity, you can create an interface that the activity will implement and the fragments can make calls to the interface(Activity A) which can then communicate down to either or both of the fragments. |
The activity and fragments part is ok and I can already customize it, but I don't get how to use the bottom sheet itself (which is why I try out multiple libraries that support bottom sheet), and work well with its listeners.
The "custom_view" layout is a large one, which also includes CollapsingToolbarLayout. Yet, the bottom sheet takes the whole screen from the beginning. Isn't there a function to tell it to take the space of a certain view within or something? Only when scrolling, it should take the whole screen... |
The CollapsingView will wrap to the whole views total height, not partially show it. I don't think this library is a good solution for what you need, sorry. |
Too bad. Thank you for your help. |
This can be achieved using the BottomSheetBehavior in the V23.2.0 support library described here |
I'm trying to do something like on Google Maps, where the content above the bottom sheet is touchable, there is no dimming, and I can scroll the bottom sheet till it shows its whole content , and even further if there is a lot of content.
Is it possible on this library to have this behavior ?
The text was updated successfully, but these errors were encountered: