13

I need to implement a screen having around 1000 thumbnails. This screen should support gesture based scrolling as well as fast scrolling using a scrollbar with thumb. So if user want to move from page 1 to page 100 he can just drag the thumb and reach there.

But there is no such control in Android. There is seek bar but its look and feel is not similar to what I want. I also want to flick and swipe functionality which can be inherited using horizontalscrollbar. So i want to add functionality of horizontal scroolbar as well as of seekbar in my application.

But I am facing some issue to sync thumb position with swipe or flick event and also the seekbar thumb look and feel need to be modified.

Please suggest some clue.

skaffman
  • 398,947
  • 96
  • 818
  • 769
Himanshu
  • 131
  • 1
  • 3
  • did you get to change the look and feel of the fastscroll thumb? I can't seem to do it on a gridView – rjam Sep 12 '12 at 15:51

2 Answers2

23

ListView thumb support:

ListView vList = ...;
vList.setFastScrollEnabled(true);

GridView thumb support:

GridView vGrid = ...;
vGrid .setFastScrollEnabled(true);

Your can also divide content into sections. In order to to that the adapter must implement following interface:

android.widget.SectionIndexer
plugmind
  • 7,926
  • 4
  • 34
  • 39
0

See this answer. It gives details about how to customize the look of the fast scroll thumb on API level >= 11.

Community
  • 1
  • 1
Vicky Chijwani
  • 10,191
  • 6
  • 56
  • 79