I want to achieve this in list view and gridview. Please Guide me. On the long click of down arrow, i want to come to the end of the of the list.
Asked
Active
Viewed 514 times
0
-
Not necessary for list view or grid view only. Can be implemented on any layout. – sneaker_android Nov 29 '12 at 06:49
-
had you create that view already ? – Sandeep P Nov 29 '12 at 07:03
-
What i just want is a customized vertical seek bar which drags my list view up and down, and two buttons one on each side that also drag my list view up n down accordingly. Thats it. Thank you. – sneaker_android Nov 29 '12 at 07:15
2 Answers
0
You can use setSelection(index
), the listview display will jump to the index you want
downButton.setOnLongClickListener(new OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
listView.setSelection(LastPositionIndex);
return true;
}
});
See this link also, may be related to you
Maintain/Save/Restore scroll position when returning to a ListView
EDITED
See this link, not exactly what you want but similar, I think you will require custom listview for your purpose.
-
main problem is to implement the scrollbar. The thumb of the scrollbar. – sneaker_android Nov 29 '12 at 07:00
-
-
I am afraid there isn't any simpler implementation other than custom view – Androider Nov 29 '12 at 07:24
0
onClick the bootem button call this function
mListView.setSelection((mListView.getAdapter().getCount() - 1));
onClick top
mListView.setSelection(0);

Sandeep P
- 4,291
- 2
- 26
- 45
-
What i just want is a customized vertical seek bar which drags my list view up and down, and two buttons one on each side that also drag my list view up n down accordingly. Thats it. Thank you. – sneaker_android Nov 29 '12 at 07:15