Show and Hide Bottom Sheet Programmatically
问题 I have implemented Bottom Sheet functionality within my activity in onCreate() using this solution and this library sheet = new BottomSheet.Builder(this, R.style.BottomSheet_Dialog) .title("New") .grid() // <-- important part .sheet(R.menu.menu_bottom_sheet) .listener(new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { // TODO } }).build(); Now, I would like to Show Bottom sheet, on click of button and in a same way want to hide bottom