I have a ButtomSheetDialogFragment in my activity. When I click a button in the ButtomSheetDialog I want to programatically dismiss it in a way where it slides down in a slow fashion. At the moment when I call dismiss() on the dialog it just disappears without doing any animation.
How do I programatically add a sliding animation to the ButtomSheetDialog?