[android-developers] Re: PopupWindow - controlling size?

2013-02-06 Thread skink
Mohit sharma wrote: Any solution yet ? popup.showAtLocation(...); int wrap = LayoutParams.WRAP_CONTENT; popup.update(wrap, wrap); 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] Re: PopupWindow - controlling size?

2013-02-05 Thread Mohit sharma
Any solution yet ? On Thursday, June 10, 2010 3:02:00 PM UTC+5:30, Axel Garcia wrote: I have exactly the same problem... did you finally found some solution? Thx On May 27, 8:17 pm, Nathan critter...@crittermap.com wrote: I've experimented with a PopupWindow, but don't have a very

[android-developers] Re: PopupWindow - controlling size?

2013-02-05 Thread Mohit sharma
Can you please explain more ? On Friday, July 23, 2010 8:39:08 AM UTC+5:30, Ryan Tan wrote: You can set the height and width of the PopupWindow to a non-absolute value by referencing the anchor view's width and height. On Jun 10, 5:32 pm, AMGG axel...@gmail.com wrote: I have exactly the

Re: [android-developers] Re: popupwindow

2011-07-25 Thread Dianne Hackborn
Abstract classes and interfaces both have their downsides: - Abstract classes don't allow multiple inheritance, resulting in an explosion of tiny classes. - Interfaces tend to result in a hard to maintain framework because it is a lot harder to introduce new functionality (can't add a new method

[android-developers] Re: popupwindow

2011-07-24 Thread Indicator Veritatis
Those many cases for this there is no particularly good reason one was picked over the other are most likely, I hope, the cases where I gave up on trying to figure out why the Android team chose to make the one 'abstract class' and the other 'public interface';) On Jul 21, 10:28 pm, Dianne

[android-developers] Re: popupwindow

2011-07-24 Thread Zsolt Vasvari
An interface is exactly just that (plus constant declerations). With abstract classes, you can have static methods and everything else that comes with a proper class. The drawback is, of course, that you can only inherit from at most one abstract class. I cannot think of even a single example,

[android-developers] Re: popupwindow

2011-07-22 Thread Abhishek Akhani
You can start an activity as a dialog (it will look like a pop up window) by setting its theame to Theme.Dialog in menifest. So Here you can make an activity with list view and open it with startActivityWithResult() and set the selected value on text view in onActivityResult() method

[android-developers] Re: popupwindow

2011-07-21 Thread dilo.mt
hope this will help you. TextView tx = new TextView(this); tx.setClickable(true); txtextControl.setOnClickListener(new OnClickListener() { @Override public void onClick(final View view) { //add ur alert box here, dont ask me how, read the documentation, :D im serious

[android-developers] Re: popupwindow

2011-07-21 Thread Indicator Veritatis
I know it sounds cruel, but TreKing was 100% correct: you have to know the basics and then some of how to code, and that in Java using object oriented design, even the (in)famous design patterns. Both the online docs and any decent book on Android assume that background. Without it, it just reads

Re: [android-developers] Re: popupwindow

2011-07-21 Thread Dianne Hackborn
On Thu, Jul 21, 2011 at 8:16 PM, Indicator Veritatis mej1...@yahoo.comwrote: They do not pause to explain, for example ... why some classes are defined a public abstract classes, while very similar other classes are defined as interfaces. Well hopefully you generally don't care. And to be

[android-developers] Re: PopupWindow doesn't show up

2011-04-25 Thread jotobjects
On Apr 25, 1:53 pm, TreKing treking...@gmail.com wrote: On Mon, Apr 25, 2011 at 2:36 PM, jotobjects jotobje...@gmail.com wrote: I'm not clear about what parent in the last line is supposed to be... How is this compiling? context == activity. text==foobar and merry christmas. I've tried a

Re: [android-developers] Re: PopupWindow doesn't show up

2011-04-25 Thread TreKing
On Mon, Apr 25, 2011 at 6:27 PM, jotobjects jotobje...@gmail.com wrote: It does compile and tracing it with the debugger it executes without error. OK, I thought you literally didn't know what you variable parent was, which didn't make much sense :-P Well, I've not used PopupWindow myself, so

[android-developers] Re: PopupWindow - controlling size?

2010-07-23 Thread Ryan Tan
You can set the height and width of the PopupWindow to a non-absolute value by referencing the anchor view's width and height. On Jun 10, 5:32 pm, AMGG axel...@gmail.com wrote: I have exactly the same problem... did you finally found some solution? Thx On May 27, 8:17 pm, Nathan

[android-developers] Re: PopupWindow Does not show

2010-07-16 Thread Conny
Got it to work, nameDetailsPopup.setLayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams,WRAP_CONTENT) ; And when I need to roll it up nameDetailsPopup.dismiss() ; Conny On Jul 14, 6:11 pm, Conny mcon...@gmail.com wrote: Log.d(NameView, NameViewDropDown Clicked);      

[android-developers] Re: PopupWindow can't be dismissed when press back key

2010-06-25 Thread BeerBelly
I have the same problem and when I try to catch the back key in my list activity (my popup display when an item is clicked) it doesn't catch the back key On Jun 4, 4:35 pm, arnouf arnaud.far...@gmail.com wrote: - Use a Dialog component or - Catch the event on back button to finish your

[android-developers] Re: PopupWindow - controlling size?

2010-06-10 Thread AMGG
I have exactly the same problem... did you finally found some solution? Thx On May 27, 8:17 pm, Nathan critter...@crittermap.com wrote: I've experimented with a PopupWindow, but don't have a very good way of controlling its size. It only responds to absolute pixels. I've tried doing this:

[android-developers] Re: PopupWindow can't be dismissed when press back key

2010-06-04 Thread arnouf
- Use a Dialog component or - Catch the event on back button to finish your PopupWindow. Best On Jun 4, 1:42 pm, ionel ionelt2...@gmail.com wrote: Hi, I've created a custom PopupWindow but when I press back button, the window doesn't dissapear. If somebody found a solution please response.

[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

[android-developers] Re: PopupWindow animation

2009-08-09 Thread skink
On Aug 8, 4:46 pm, loctarar andrei.bu...@gmail.com wrote: Solved :). If anyone is interested the styles.xml should look like this: resources         style name=Animation.Popup parent=android:Animation         item name=android:windowEnterAnimation@anim/popup_in/ item         item

[android-developers] Re: PopupWindow animation

2009-08-09 Thread loctarar
Hello! Yes, it seems I have the same problem. I'll test it on a G1 device tommorow at work and tell you if it works. On Aug 9, 10:46 am, skink psk...@gmail.com wrote: On Aug 8, 4:46 pm, loctarar andrei.bu...@gmail.com wrote: Solved :). If anyone is interested the styles.xml should look like

[android-developers] Re: PopupWindow animation

2009-08-09 Thread Dianne Hackborn
There is a bug in 1.5 with the system's cache of animations, where it would not clear them when an application is updated. On Sun, Aug 9, 2009 at 12:46 AM, skink psk...@gmail.com wrote: On Aug 8, 4:46 pm, loctarar andrei.bu...@gmail.com wrote: Solved :). If anyone is interested the

[android-developers] Re: PopupWindow animation

2009-08-09 Thread skink
Dianne Hackborn wrote: There is a bug in 1.5 with the system's cache of animations, where it would not clear them when an application is updated. -- Dianne Hackborn Android framework engineer thanks Dianne for update! pskink --~--~-~--~~~---~--~~ You

[android-developers] Re: PopupWindow animation

2009-08-08 Thread loctarar
Solved :). If anyone is interested the styles.xml should look like this: resources style name=Animation.Popup parent=android:Animation item name=android:windowEnterAnimation@anim/popup_in/ item item name=android:windowExitAnimation@anim/popup_out/ item /style