John Shelley John Shelley - 2 years ago 232
Android Question

Android How to implement Bottom Sheet from Material Design docs

How do you implement the bottom sheet specficiation?

The new update to Google Drive shows this with the Floating Action Button press ->

enter image description here

Granted the specs never say anything about rounded corners, regardless it is possible to do, just unsure of how to go about it. Currently using the AppCompat library and target set to 21.


Answer Source

Answering my own question so developers know that the new support library provides this finally! All hail the all powerful Google!

An example from the Android Developer's Blog:

// The View with the BottomSheetBehavior
View bottomSheet = coordinatorLayout.findViewById(;  
BottomSheetBehavior behavior = BottomSheetBehavior.from(bottomSheet);  
behavior.setBottomSheetCallback(new BottomSheetCallback() {  
   public void onStateChanged(@NonNull View bottomSheet, int newState) {  
     // React to state change  

  public void onSlide(@NonNull View bottomSheet, float slideOffset) {  
     // React to dragging events  

@reVerse's answer above is still a valid option but its nice to know that there is a standard that Google supports too.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download