Code example for Handler

0
    private final ResizePopupRunnable mResizePopupRunnable = new ResizePopupRunnable();
    private final PopupTouchInterceptor mTouchInterceptor = new PopupTouchInterceptor();
    private final PopupScrollListener mScrollListener = new PopupScrollListener();
    private final ListSelectorHider mHideSelector = new ListSelectorHider();
 
    private Handler mHandler = new Handler();
 
    private Rect mTempRect = new Rect();
 
    private boolean mModal;
 
    public static final int POSITION_PROMPT_ABOVE = 0;
    public static final int POSITION_PROMPT_BELOW = 1;
 
    public IcsListPopupWindow(Context context) {
        this(context, null, R.attr.listPopupWindowStyle);
    } 
 
    public IcsListPopupWindow(Context context, AttributeSet attrs, int defStyleAttr) {
        mContext = context;
        mPopup = new PopupWindowCompat(context, attrs, defStyleAttr);