Tuesday, 15 February 2011

java - Android 4.1+ PopupWindow Simplest Example -


I want simple and clear examples for popup windows (like simple).
I want to change the popup menu with popup.

I resolved the problem:

  layout inflection = ( Layout Inflator) this.getSystemService (Reference. LAOUT_INFLATER_SERVICE); Popup window popup = new popup window (inflater.inflate (R.layout.popup_window, empty, false), window manager. LayoutParams.WRAP_CONTENT, WindowManager.LayoutParams.WRAP_CONTENT, true); Popup.showAtLocation (SearchWebID (RID.man), GravityEnd | Gravity.Tap, DPTOPX (16), DPTOPX (42));  

No comments:

Post a Comment