title: how to set layout background transparent show popup window in android?
body: <p>I would like to be able to either blur or dim the layout background when I show my popup window Like this.how do this pls help me.</p>
  
  <p>This my code:</p>
  
  <pre><code>LayoutInflater inflater = (LayoutInflater) ResidentActivity.this
                              .getSystemService(Context.LAYOUT_INFLATER_SERVICE);
                      View layout = inflater.inflate(
                              R.layout.activity_appselection,
                              (ViewGroup) findViewById(R.id.popuplayoutelement));
                      pwindo = new PopupWindow(layout, 470, 540, true);
                      pwindo.showAtLocation(layout, Gravity.CENTER, 0, 45);
  </code></pre>
  
  <p>my output show this</p>
  
  <p><img src="https://i.stack.imgur.com/QxYrI.png" alt="enter image description here">
  but i need like this
  <img src="https://i.stack.imgur.com/4gXSC.jpg" alt="enter image description here"></p>