2

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?

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);
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
CookieMonster
  • 241
  • 1
  • 9
  • 26

0 Answers0