Code example for Rect

0
    private static final String TAG = "RecentApplicationsBackground";
 
    private boolean mBackgroundSizeChanged;
    private Drawable mBackground;
    private Rect mTmp0 = new Rect();
    private Rect mTmp1 = new Rect();
 
    public RecentApplicationsBackground(Context context) {
        this(context, null);
        init(); 
    } 
 
    public RecentApplicationsBackground(Context context, AttributeSet attrs) {
        super(context, attrs);
        init(); 
    } 
 
    private void init() { 
        mBackground = getBackground();
        setBackgroundDrawable(null);
        setPadding(0, 0, 0, 0);