popup window outside click set to false [setOutsideTouchable(false)] does not work

前端 未结 3 568
无人及你
无人及你 2021-01-14 23:09

//create layoutinflator try {

        LayoutInflater inflator = LayoutInflater.from(this);

//create view

        fi         


        
3条回答
  •  忘掉有多难
    2021-01-14 23:38

    To dismiss the popup window just add the following line of code

      popupWindow.setBackgroundDrawable(new ColorDrawable());
    

    It worked for me and i am sure this is what you want.

提交回复
热议问题