I'm having a problem to show a Spinner, he display information of List
correct but the prompt and the item selected, not show correct, as you can
view in screen attached.
Action 1 - Prompt not correct
[image: Imagem inline 2]
> I'm having a problem to show a Spinner, he display information of List
> correct but the prompt and the item selected, not show correct, as you can
> view in screen attached.
You neglected to post any code. Presumably, you are just passing an
ArrayList (or array) of some Java object to your SpinnerAdapter. You need
to override toString() on those objects to return what you want the
SpinnerAdapter to use, or make the change somewhere in your SpinnerAdapter
subclass itself (e.g., override getView() and getDropDownView() of an
ArrayAdapter).
>> I'm having a problem to show a Spinner, he display information of List
>> correct but the prompt and the item selected, not show correct, as you can
>> view in screen attached.
> --
> 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 to
> android-developers+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> You neglected to post any code. Presumably, you are just passing an
> ArrayList (or array) of some Java object to your SpinnerAdapter. You need
> to override toString() on those objects to return what you want the
> SpinnerAdapter to use, or make the change somewhere in your SpinnerAdapter
> subclass itself (e.g., override getView() and getDropDownView() of an
> ArrayAdapter).
> On Mon, Oct 15, 2012 at 8:25 AM, Re JMD <rjmdf...@gmail.com> wrote:
>>> I'm having a problem to show a Spinner, he display information of List
>>> correct but the prompt and the item selected, not show correct, as you can
>>> view in screen attached.
>> --
>> 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 to
>> android-developers+unsubscribe@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
> _The Busy Coder's Guide to Android Development_ Version 4.2 Available!
> --
> 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 to
> android-developers+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> 2012/10/15 Mark Murphy <mmur...@commonsware.com>
>> You neglected to post any code. Presumably, you are just passing an
>> ArrayList (or array) of some Java object to your SpinnerAdapter. You need
>> to override toString() on those objects to return what you want the
>> SpinnerAdapter to use, or make the change somewhere in your SpinnerAdapter
>> subclass itself (e.g., override getView() and getDropDownView() of an
>> ArrayAdapter).
>> On Mon, Oct 15, 2012 at 8:25 AM, Re JMD <rjmdf...@gmail.com> wrote:
>>>> I'm having a problem to show a Spinner, he display information of List
>>>> correct but the prompt and the item selected, not show correct, as you can
>>>> view in screen attached.
>>> --
>>> 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 to
>>> android-developers+unsubscribe@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>> _The Busy Coder's Guide to Android Development_ Version 4.2 Available!
>> --
>> 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 to
>> android-developers+unsubscribe@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
> You said that i should change the method .toString, but if i change this
> method, i can't stored the SoapPrimitive, you will have a another solution?
>> 2012/10/15 Mark Murphy <mmur...@commonsware.com>
>>> You neglected to post any code. Presumably, you are just passing an
>>> ArrayList (or array) of some Java object to your SpinnerAdapter. You need
>>> to override toString() on those objects to return what you want the
>>> SpinnerAdapter to use, or make the change somewhere in your SpinnerAdapter
>>> subclass itself (e.g., override getView() and getDropDownView() of an
>>> ArrayAdapter).
>>> On Mon, Oct 15, 2012 at 8:25 AM, Re JMD <rjmdf...@gmail.com> wrote:
>>>>> I'm having a problem to show a Spinner, he display information of List
>>>>> correct but the prompt and the item selected, not show correct, as you can
>>>>> view in screen attached.
>>>> --
>>>> 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 to
>>>> android-developers+unsubscribe@googlegroups.com
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/android-developers?hl=en
>>> _The Busy Coder's Guide to Android Development_ Version 4.2 Available!
>>> --
>>> 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 to
>>> android-developers+unsubscribe@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
> You said that i should change the method .toString, but if i change this
> method, i can't stored the SoapPrimitive, you will have a another solution?
He gave you another solution when he said this:
or make the change somewhere in your SpinnerAdapter subclass itself (e.g.,
>> override getView() and getDropDownView() of an ArrayAdapter).
>> You said that i should change the method .toString, but if i change this
>> method, i can't stored the SoapPrimitive, you will have a another solution?
>>> 2012/10/15 Mark Murphy <mmur...@commonsware.com>
>>>> You neglected to post any code. Presumably, you are just passing an
>>>> ArrayList (or array) of some Java object to your SpinnerAdapter. You need
>>>> to override toString() on those objects to return what you want the
>>>> SpinnerAdapter to use, or make the change somewhere in your SpinnerAdapter
>>>> subclass itself (e.g., override getView() and getDropDownView() of an
>>>> ArrayAdapter).
>>>> On Mon, Oct 15, 2012 at 8:25 AM, Re JMD <rjmdf...@gmail.com> wrote:
>>>>>> I'm having a problem to show a Spinner, he display information of
>>>>>> List correct but the prompt and the item selected, not show correct, as you
>>>>>> can view in screen attached.
>>>>> --
>>>>> 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 to
>>>>> android-developers+unsubscribe@googlegroups.com
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/android-developers?hl=en
>>>> _The Busy Coder's Guide to Android Development_ Version 4.2 Available!
>>>> --
>>>> 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 to
>>>> android-developers+unsubscribe@googlegroups.com
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/android-developers?hl=en
> --
> 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 to
> android-developers+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> You said that i should change the method .toString, but if i change this
>> method, i can't stored the SoapPrimitive, you will have a another solution?
> He gave you another solution when he said this:
> or make the change somewhere in your SpinnerAdapter subclass itself (e.g.,
>>> override getView() and getDropDownView() of an ArrayAdapter).
>>> You said that i should change the method .toString, but if i change this
>>> method, i can't stored the SoapPrimitive, you will have a another solution?
>>>> 2012/10/15 Mark Murphy <mmur...@commonsware.com>
>>>>> You neglected to post any code. Presumably, you are just passing an
>>>>> ArrayList (or array) of some Java object to your SpinnerAdapter. You need
>>>>> to override toString() on those objects to return what you want the
>>>>> SpinnerAdapter to use, or make the change somewhere in your SpinnerAdapter
>>>>> subclass itself (e.g., override getView() and getDropDownView() of an
>>>>> ArrayAdapter).
>>>>> On Mon, Oct 15, 2012 at 8:25 AM, Re JMD <rjmdf...@gmail.com> wrote:
>>>>>>> I'm having a problem to show a Spinner, he display information of
>>>>>>> List correct but the prompt and the item selected, not show correct, as you
>>>>>>> can view in screen attached.
>>>>>> --
>>>>>> 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 to
>>>>>> android-developers+unsubscribe@googlegroups.com
>>>>>> For more options, visit this group at
>>>>>> http://groups.google.com/group/android-developers?hl=en
>>>>> _The Busy Coder's Guide to Android Development_ Version 4.2 Available!
>>>>> --
>>>>> 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 to
>>>>> android-developers+unsubscribe@googlegroups.com
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/android-developers?hl=en
>> --
>> 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 to
>> android-developers+unsubscribe@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
> --
> 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 to
> android-developers+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en