new를 할때와 showAtLocation할때 동일한 view가 들어가는 것에 유의하자.
final View view = getLayoutInflater().inflate(R.layout.rotate_popup, null);
private PopupWindow rotatePopup;
rotatePopup = new PopupWindow(view, ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);rotatePopup.setFocusable(true);
rotatePopup.showAtLocation(view, Gravity.CENTER, 0, 0);
No comments:
Post a Comment