Code example for Handler

Methods: post

0
 
            if (!mModal || mDropDownList.isInTouchMode()) {
                clearListSelection(); 
            } 
            if (!mModal) {
                mHandler.post(mHideSelector);
            } 
        } 
    } 
 
    public void dismiss() { 
        mPopup.dismiss();
        if (mPromptView != null) {
            final ViewParent parent = mPromptView.getParent();
            if (parent instanceof ViewGroup) {
                final ViewGroup group = (ViewGroup) parent;
                group.removeView(mPromptView);
            } 
        } 
        mPopup.setContentView(null);
        mDropDownList = null;