Code example for WeakHashMap

Methods: getput

0
     * 
     * @param view View to wrap. 
     * @return Proxy to post-3.0 properties. 
     */ 
    public static AnimatorProxy wrap(View view) {
        AnimatorProxy proxy = PROXIES.get(view);
        // This checks if the proxy already exists and whether it still is the animation of the given view 
        if (proxy == null || proxy != view.getAnimation()) {
            proxy = new AnimatorProxy(view);
            PROXIES.put(view, proxy);
        } 
        return proxy;
    } 
 
    private final WeakReference<View> mView;
    private final Camera mCamera = new Camera();
    private boolean mHasPivot;
 
    private float mAlpha = 1;
    private float mPivotX;