Hi,

I ended up capturing the touch event on the spinner, and recreating the
dialog by myself .. I really feel that this is toooooo complicated.

Mehdi

On Tue, Oct 13, 2009 at 11:55 AM, Mehdi Achour <[email protected]> wrote:

> Hello,
>
> I'm trying to use a spinner inside one of my tabs.
> The problem is that whenever the spinner is clicked, the application
> crashes.
> I understand this is a problem with the Dialog of the spinner that needs to
> run on my main activity context (vs the current activity displayed in my
> tab).
>
> Creating the spinner programatically given this.getParent() as context
> works fine, but I still need to place my Spinner where I want.
> I found it sad not to be able to rely on my XML layout file.
>
> May you please tell me :
>   * If there's a way to replace the spinner of my layout with the newly
> created spinner (or something which will still allow me to use my layout
> file)
>   * If I'm stuck, and need to recreate the whole layout of this activity
> programatically.
>
> Thanks in advance !
>
> Mehdi
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to