Back Key 클릭 시, 닫히게

OutSide 터치 시, 닫히게

다른 View 터치 시, 클릭 되지 않고 닫히게..




1
2
3
4
5
6
7
8
9
    public void show() {
        mListView = getMenuListViewInflater(mContext);
        mPopupWindow = new PopupWindow(mListView, measureContentWidth(), measureContentHeight());
        mPopupWindow.setOutsideTouchable(false);
        mPopupWindow.setTouchable(true);
        mPopupWindow.setFocusable(true);
        mPopupWindow.setBackgroundDrawable(new BitmapDrawable(mContext.getResources(), ""));
        mPopupWindow.showAsDropDown(mAnchor);
    }



'Android > Class' 카테고리의 다른 글

[Android] SoundPool  (0) 2015.08.07
[Renderer] Open GL View sample  (0) 2015.04.03
[Exception] Exception의 종류  (0) 2014.08.28
[InputMethodManager] Keyboard 컨트롤  (0) 2014.07.24
[SharedPreference]  (0) 2014.07.24
Posted by 소망아기
: