Code example for View

Methods: getWindowToken

0
        invokePopup(p);
    } 
 
    public void showAtLocation(View parent, int gravity, int x, int y) {
        showAtLocation(parent.getWindowToken(), gravity, x, y);
    } 
 
    private void unregisterForScrollChanged() { 
        WeakReference<View> anchorRef = mAnchor;
        View anchor = null;
        if (anchorRef != null) {
            anchor = anchorRef.get();
        } 
        if (anchor != null) {
            ViewTreeObserver vto = anchor.getViewTreeObserver();
            vto.removeOnScrollChangedListener(mOnScrollChangedListener);
        } 
        mAnchor = null;
    } 
 
    public void update() {