Пример #1
0
 public static void SetHotspotBounds(Drawables.Drawable drawable, int left, int top, int right, int bottom)
 {
     if (Build.VERSION.SdkInt >= BuildVersionCodes.Lollipop)
     {
         //We don't want the full size rect, Lollipop ripple would be too big
         int size = (right - left) / 8;
         DrawableCompat.SetHotspotBounds(drawable, left + size, top + size, right - size, bottom - size);
     }
     else
     {
         drawable.SetBounds(left, top, right, bottom);
     }
 }