0

enter image description here

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.

sneaker_android
  • 380
  • 3
  • 8

2 Answers2

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.

http://baziegar.wordpress.com/2012/07/28/android-listview/

Community
  • 1
  • 1
Androider
  • 2,844
  • 4
  • 26
  • 47
0

onClick the bootem button call this function

mListView.setSelection((mListView.getAdapter().getCount() - 1));

onClick top

mListView.setSelection(0);
Sandeep P
  • 3,962
  • 2
  • 22
  • 43
  • 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