[android-developers] Re: How to show PopupWindow in an Activity on some click event

2011-11-25 Thread Shajahan
Hi Mukesh, Thanks for the reply. am doing the same Context context = this; On Nov 25, 4:04 pm, Mukesh Srivastav wrote: > Code looks fine but the problem would be with context. > > do the following. > > 1.create a context class variable. some thing like this. >    Context parentcontext; > > 2.As

[android-developers] Re: How to show PopupWindow in an Activity on some click event

2011-11-25 Thread Shajahan
its not working...:( looking for some help On Nov 25, 4:20 pm, Mukesh Srivastav wrote: > Let use know, if it works. > > Warm Regards, > *Mukesh Kumar*, > Android Consultant/Freelancer, > India,Hyderabad. > > > > On Fri, Nov 25, 2011 at 4:43 PM, Shajahan wrote: > > Hi Mukesh, > > > Thanks for the

[android-developers] Re: How to show PopupWindow in an Activity on some click event

2011-11-28 Thread Shajahan
// Start of code for PopupWindow PopupWindow popupWindow = new PopupWindow(context); Line 1 TextView textView = new TextView(context); Line 2 popupWindow.setContentView(textView); LayoutParams layoutParams = new LayoutParams(LayoutPar

[android-developers] Re: How to show PopupWindow in an Activity on some click event

2011-11-28 Thread gil eichenbaum
try adding this: popupWindow.setWindowLayoutMode(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe

Re: [android-developers] Re: How to show PopupWindow in an Activity on some click event

2011-11-25 Thread Mukesh Srivastav
Let use know, if it works. Warm Regards, *Mukesh Kumar*, Android Consultant/Freelancer, India,Hyderabad. On Fri, Nov 25, 2011 at 4:43 PM, Shajahan wrote: > Hi Mukesh, > > Thanks for the reply. > > am doing the same > Context context = this; > > On Nov 25, 4:04 pm, Mukesh Srivastav wrote: > >

Re: [android-developers] Re: How to show PopupWindow in an Activity on some click event

2011-11-25 Thread Mukesh Srivastav
I am sure, the problem must with the context. Any ways, for the popupwindow, you could always go with the AlertDialog, it will also work as popup. On Fri, Nov 25, 2011 at 4:57 PM, Shajahan wrote: > its not working...:( > looking for some help > > On Nov 25, 4:20 pm, Mukesh Srivastav wrote: >

Re: [android-developers] Re: How to show PopupWindow in an Activity on some click event

2011-11-25 Thread Jovish P
// Start of code for PopupWindow PopupWindow popupWindow = new PopupWindow(context); TextView textView = new TextView(context); popupWindow.setContentView(textView); LayoutParams layoutParams = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); textView.setLayoutParams(layoutPa

Re: [android-developers] Re: How to show PopupWindow in an Activity on some click event

2011-11-28 Thread Jovish P
what was the actual problem ? On Mon, Nov 28, 2011 at 3:04 PM, Shajahan wrote: > // Start of code for PopupWindow > PopupWindow popupWindow = new > PopupWindow(context); Line 1 > TextView textView = new > TextView(context); Line 2

Re: [android-developers] Re: How to show PopupWindow in an Activity on some click event

2011-11-28 Thread skink
Jovish P wrote: > what was the actual problem ? > 0x0 dimension pskink -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email t