Advertisement
Guest User

popup layout

a guest
Mar 25th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. public void callPopupCreateQCM(View view) {
  2. LayoutInflater inflater = (LayoutInflater)
  3. getSystemService(LAYOUT_INFLATER_SERVICE);
  4. popupView = inflater.inflate(R.layout.popup_create_qcm, null);
  5. int width = LinearLayout.LayoutParams.WRAP_CONTENT;
  6. int height = LinearLayout.LayoutParams.WRAP_CONTENT;
  7. boolean focusable = true;
  8. final PopupWindow popupWindow = new PopupWindow(popupView, width, height, focusable);
  9. popupWindow.showAtLocation(view, Gravity.CENTER, 0, 0);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement