Skip to content

Instantly share code, notes, and snippets.

@malikkurosaki
Created October 20, 2019 01:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save malikkurosaki/5e7f3319f82a8688fbff29dd28a49491 to your computer and use it in GitHub Desktop.
Save malikkurosaki/5e7f3319f82a8688fbff29dd28a49491 to your computer and use it in GitHub Desktop.
android super simple popout window

simple popout window

    public static void ngepopInfo(Context context,View view){
        PopupWindow popupWindow = new PopupWindow(context);
        View layoutNya = LayoutInflater.from(context).inflate(R.layout.hasil_adapter,null);
        popupWindow.setContentView(layoutNya);
        popupWindow.setWidth(WindowManager.LayoutParams.WRAP_CONTENT);
        popupWindow.setHeight(WindowManager.LayoutParams.WRAP_CONTENT);
        popupWindow.setOutsideTouchable(true);
        popupWindow.setFocusable(true);
        popupWindow.showAsDropDown(view);


    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment