It's the same id as returned by the adapter's getItemId, but I'm not sure
ArrayAdapter returns anything useful there.

I'd actually recommend you implement your own adapter, subclassing from
BaseAdapter.

It's not that difficult, there are plenty of samples and tutorials. And yet
the stuff you can learn this way, getting insight into listview/adapter
interaction, can be quite useful.

--
Kostya Vasilyev -- http://kmansoft.wordpress.com
14.01.2011 1:46 пользователь "Tobiah" <[email protected]> написал:
> On 01/13/2011 02:39 PM, Kostya Vasilyev wrote:
>> Yes you can. Call Adapter.getItemAtPosition() with the position value
passed into onClick().
>
> I'm new to this. I forgot to look at the inherited methods in the docs.
> What seems most interesting is getItemId(int position). If I could set
> that Id when creating the Adapter then I'd be all set. Is this the
> same Id that will be sent to my onItemClick handler? I'm just not
> sure how to set the Id.
>
> Thanks!
>
> Tobiah
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> 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 [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-developers?hl=en

Reply via email to