@Override
            public void onSlide(final @NonNull View bottomSheet, final float slideOffset) {
                // make closing the dialog easier
                closeOnRelease = slideOffset < -0.2;
            }
create a bottom sheet dialog with action bar
main/src/main/java/cgeo/geocaching/ui/dialog/Dialogs.java