thanks! I executed your advice. I could get a event when mouse down. great! but, I could not to get selected Item object.
getSelectedItem,getItemAtPosition,getSelectedItemId... These returned Null, in onScrollStateChange,onScroll. I think a little more. thank you. 2010/4/5 dillirao malipeddi <[email protected]> > implement onScrollListeners > > public abstract void onScroll (AbsListView view, int firstVisibleItem, > int visibleItemCount, int totalItemCount) > Since: API Level 1 > > Callback method to be invoked when the list or grid has been scrolled. This > will be called after the scroll has completed > Parameters view The view whose scroll state is being reported > firstVisibleItem the index of the first visible cell (ignore if > visibleItemCount == 0) visibleItemCount the number of visible cells > totalItemCount the number of items in the list adaptor > public abstract void onScrollStateChanged (AbsListView view, int > scrollState) > Since: API Level 1 > > Callback method to be invoked while the list view or grid view is being > scrolled. If the view is being scrolled, this method will be called before > the next frame of the scroll is rendered. In particular, it will be called > before any calls to getView(int, View, ViewGroup). > Parameters view The view whose scroll state is being reported > scrollState The current scroll state. One of SCROLL_STATE_IDLE, > SCROLL_STATE_TOUCH_SCROLL or SCROLL_STATE_IDLE. > > On Mon, Apr 5, 2010 at 6:26 AM, syuta <[email protected]> wrote: > >> hello. >> I use ListView.(Adapter is a Custom Adapter) *extends BaseAdapter >> >> I wanto to get selected item, when I click the item in the list. >> now, I use OnItemClickListener, OnItemSelectedListener. >> but, This program doesn't do the operation for which I hope. >> >> not click. I want to get a selected Item in the list, when like >> mouse_down. >> (Moment when color of item in list changed?) >> >> Can this be done? >> >> -- >> >> 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 >> >> To unsubscribe, reply using "remove me" as the subject. >> > > > > -- > Thank you, > Dilli Rao. M > www.arijasoft.com > > -- > 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

