Skip to content
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

Cannot disable dragging because dialog behavior is private. #31

Open
Srt9930 opened this issue Mar 2, 2021 · 1 comment
Open

Cannot disable dragging because dialog behavior is private. #31

Srt9930 opened this issue Mar 2, 2021 · 1 comment

Comments

@Srt9930
Copy link

Srt9930 commented Mar 2, 2021

i wanted to disable the dialog dragging but i am not able to do that, i searched about this and get a solution where i have to access behavior from dialog but behavior is a private variable in the SuperBottomSheetFragment.

@I3eyonder
Copy link

This work for me. Override superBottomSheetDialog theme in your own app module

<style name="superBottomSheetDialog" parent="Theme.Design.Light.BottomSheetDialog">
        <item name="android:windowIsFloating">false</item>
        <item name="behavior_draggable">false</item>
    </style>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants