I want to show a LinearLayout (with other controls in it) as popup window on a button-click, could some one pls HELP me to solve it.....I googled but no luck.
many thanks in advance
Nitin
Last edited by nitin2304; 08-06-2009 at 03:07 AM.
Reason: spell correct
Best Place to look for solution is android source code i recently wanted to implement popup window and after long search on web i found solution in android calendar module source code in "calendarview" class in "updateeventdetails" method her is my experience http://www.ceveni.com/2009/09/popup-...e-program.html
First inflate your layout.xml and assign it to a ViewGroup.
Prepare the controls in the viewgroup. (fe. assign OnClickListeners)
Personally I like to use AlertDialog.Builder to build a new alert dialog.
Use the setView method to assign your layout/viewgroup to the dialog.
Don't forget to call the create method.
Best to do all of this in the Activity's onCreateDialog method
Bookmarks