code: private void adaptRootView() {
          if (rootView != null) {
              if (getStyle() == Style.LIST) {
                  int paddingTop = getContext().getResources()
                          .getDimensionPixelSize(R.dimen.bottom_sheet_list_padding_top);
                  rootView.setPadding(0, paddingTop, 0, 0);
              } else {
                  int paddingTop = getContext().getResources()
                          .getDimensionPixelSize(R.dimen.bottom_sheet_grid_padding_top);
                  rootView.setPadding(0, paddingTop, 0, 0);
              }
          }
      }
docs: Adapts the root view.