title: Adding shadow or border to popup window - android
body: <p>I have a popupwindow which is connected to a xml content. I want a shadow or a boarder so it gives a better representation  showing that it is a new window. How to I do that in XML or Java?</p>
  
  <pre><code>LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  View layout = inflater.inflate(R.layout.new_popup, null);
  PopupWindow pw = new PopupWindow(layout, ViewGroup.LayoutParams.WRAP_CONTENT, 650);
  pw.setAnimationStyle(android.R.style.Animation_Dialog);
  pw.showAtLocation(layout, Gravity.CENTER, ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
  </code></pre>