I have to scale the 'top view' while scrolling the listview
. I want to zoom/scale-in the topview on scrolling-up the listview and scale out while scrolling down.
How can i implement such functionality?
I have to scale the 'top view' while scrolling the listview
. I want to zoom/scale-in the topview on scrolling-up the listview and scale out while scrolling down.
How can i implement such functionality?
You can use list view scroll listener. Here i created list view to get event when list view scroll to the last item. you can use this and create your logic.
listHome.setOnScrollListener(new OnScrollListener() {
@Override
public void onScrollStateChanged(AbsListView view, int scrollState) {
// TODO Auto-generated method stub
}
@Override
public void onScroll(AbsListView view, int firstVisibleItem,
int visibleItemCount, int totalItemCount) {
// TODO Auto-generated method stub
if (firstVisibleItem + visibleItemCount == totalrecord && totalItemCount != 0) {
}
});