/** Sets the Shape of this ShapeDrawable. */
 public void setShape(Shape s) {
   mShapeState.mShape = s;
   updateShape();
 }
 @Override
 protected void onBoundsChange(Rect bounds) {
   super.onBoundsChange(bounds);
   updateShape();
 }