3 messages in com.googlegroups.android-developers[android-developers] Re: Spinner item...
FromSent OnAttachments
jdav...@gmail.com26 Jul 2008 08:09 
Zach Hobbs26 Jul 2008 10:27 
Juan David Trujillo C.26 Jul 2008 12:50 
Subject:[android-developers] Re: Spinner item click event not supported
From:Juan David Trujillo C. (jdav@gmail.com)
Date:07/26/2008 12:50:24 PM
List:com.googlegroups.android-developers

Hi Zach!

You´re totally right,I´ll give it a try. I was just interested in finding out if there was a form of simulating the onItemClickListener, but I agree with you, the onItemSelected listener is good enough for what I need.

Thanks!!

Best regards,

On Sat, Jul 26, 2008 at 1:28 PM, Zach Hobbs <hob@helloandroid.com> wrote:

I don't understand why you can't use an OnItemSelectedListener to achieve this? This would let you repopulate the form data each time they change the selection in the spinner.

On Saturday 26 July 2008 11:09:56 jdav@gmail.com wrote:

Hi!

I´m writing an application in which I need to capture the clicked item from a spinner and once the item is clicked, fill some text fields. I found in the documentation the setOnItemClickListener(OnItemClickListener l) is not supported for spinners, so I have to look another way to achieve this. The setOnItemSelectedListener(l) isn´t what I need, because I want the user to get the information filled once he clicks the element, without having to actually press a button, or do anything else. I was wondering if anyone has found a way to work this around (perhaps using a expandable list like the one showed in the API demo??) Any better ideas?

Thanks in advance,