// We draw the handle ourselves so that it's always glued to the bottom of the window.
 @Override
 protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
   super.onLayout(changed, left, top, right, bottom);
   if (changed) {
     final int pl = getPaddingLeft();
     final int pr = getPaddingRight();
     mHandleBar.setBounds(pl, 0, getWidth() - pr, (int) mHandleBarHeight);
   }
 }