[android-developers] Re: PopupWindow with GridView - Trouble with inflating view

2009-12-14 Thread k_day
I am still unable to capture the OnItemClick event from my GridView that is in the PopupWindow. Can anybody help me with this? On Dec 4, 12:48 am, k_day kevin.r@gmail.com wrote: I ended up finding the problem.  I was using the ImageAdapter code form the Hello, Gallery example.  That

[android-developers] Re: PopupWindow with GridView - Trouble with inflating view

2009-12-03 Thread k_day
I ended up finding the problem. I was using the ImageAdapter code form the Hello, Gallery example. That contained a line of code referencing a Gallary: imageView.setLayoutParams(new Gallery.LayoutParams(150, 120)); When used with a GridView, this obviously causes a class cast exception. Now

[android-developers] Re: PopupWindow with GridView - Trouble with inflating view

2009-11-14 Thread k_day
I did notice that if I remove popupview.setAdapter(new ImageAdapter(this)); I no longer throw the exception. Am I using the Adapter wrong? Any help would really be appreciated. On Nov 10, 7:29 pm, k_day kevin.r@gmail.com wrote: I tried to post on