@Override
protected void onUpdateBackgroundAndPaddings(Rect searchBarBounds, Rect padding) {
mContent.setPadding(0, padding.top, 0, padding.bottom);
InsetDrawable background = new InsetDrawable(
getResources().getDrawable(R.drawable.quantum_panel_shape_dark), padding.left, 0,
padding.right, 0);
Rect bgPadding = new Rect();
background.getPadding(bgPadding);
mView.setBackground(background);
getRevealView().setBackground(background.getConstantState().newDrawable());
mView.updateBackgroundPadding(bgPadding);
}