LayoutInflater inflater = LayoutInflater.from(this);
View layout = inflater.inflate(R.layout.popup, null);
pop =new PopupWindow(layout, LayoutParams.FILL_PARENT,
LayoutParams.FILL_PARENT);
pop.setAnimationStyle(R.style.PopupAnimation);
popupWindow.setFocusable(true);
pop.update();
- ColorDrawable cd = new ColorDrawable(-0000);
- pop.setBackgroundDrawable(cd);
- pop.setInputMethodMode(PopupWindow.INPUT_METHOD_NEEDED);
- pop.setTouchable(true);
- pop.setOutsideTouchable(true);
- pop.setFocusable(true);
pop.showAtLocation(findViewById(R.id.btn_show), Gravity.NO_GRAVITY, 0, 0);