Code example for View

Methods: getViewTreeObserver

0
        if (anchorRef != null) {
            anchor = anchorRef.get();
        } 
        if (anchor != null) {
            ViewTreeObserver vto = anchor.getViewTreeObserver();
            vto.removeOnScrollChangedListener(mOnScrollChangedListener);
        } 
        mAnchor = null;
    } 
 
    public void update() { 
        if (!isShowing() || mContentView == null) {
            return; 
        } 
        WindowManager.LayoutParams p = (WindowManager.LayoutParams)
                mPopupView.getLayoutParams();
        boolean update = false;
        final int newAnim = computeAnimationResource();
        if (newAnim != p.windowAnimations) {
            p.windowAnimations = newAnim;
Stop searching for code, let great code find you!  Add Codota to your java IDE