implement onScrollListeners

public abstract void onScroll
(AbsListView<file:///E:/Development/ANDROID_2_0/android-sdk-windows/docs/reference/android/widget/AbsListView.html>
view,
int firstVisibleItem, int visibleItemCount, int totalItemCount)
Since: API Level
1<file:///E:/Development/ANDROID_2_0/android-sdk-windows/docs/guide/appendix/api-levels.html#level1>

Callback method to be invoked when the list or grid has been scrolled. This
will be called after the scroll has completed
ParametersviewThe view whose scroll state is being reportedfirstVisibleItemthe
index of the first visible cell (ignore if visibleItemCount == 0)
visibleItemCountthe number of visible cellstotalItemCountthe number of items
in the list adaptor
public abstract void onScrollStateChanged
(AbsListView<file:///E:/Development/ANDROID_2_0/android-sdk-windows/docs/reference/android/widget/AbsListView.html>
view,
int scrollState)
Since: API Level
1<file:///E:/Development/ANDROID_2_0/android-sdk-windows/docs/guide/appendix/api-levels.html#level1>

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)<file:///E:/Development/ANDROID_2_0/android-sdk-windows/docs/reference/android/widget/Adapter.html#getView(int,
android.view.View, android.view.ViewGroup)>.
ParametersviewThe view whose scroll state is being reportedscrollStateThe
current scroll state. One of
SCROLL_STATE_IDLE<file:///E:/Development/ANDROID_2_0/android-sdk-windows/docs/reference/android/widget/AbsListView.OnScrollListener.html#SCROLL_STATE_IDLE>
, 
SCROLL_STATE_TOUCH_SCROLL<file:///E:/Development/ANDROID_2_0/android-sdk-windows/docs/reference/android/widget/AbsListView.OnScrollListener.html#SCROLL_STATE_TOUCH_SCROLL>
 or 
SCROLL_STATE_IDLE<file:///E:/Development/ANDROID_2_0/android-sdk-windows/docs/reference/android/widget/AbsListView.OnScrollListener.html#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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to