2

I fairly new to programming for the Android platform and have some question about howto add a search box and fastscroll to the listview of my app.

I have used the code of Jeff Sharkey to add a listview with headers to my app. This is working great but I like to have a searchbox add the top and fastscroll enabled, I have tried some tutorials on this but I can't get it to work.

And how can I get the clicked item? I used setOnItemClickListener but this isn't working.

Can anybody help me out please?

Thx, Daniël

Daniel
  • 1,275
  • 1
  • 22
  • 31

1 Answers1

0

Try using MergeAdapter by Mark Murphy

https://github.com/commonsguy/cwac-merge

It allows you to addViews not just text as in case of Jeff Sharkey's version. So you can add your buttons as views in between and still use a single list.

Hope it helps !!!

Jayshil Dave
  • 1,106
  • 10
  • 22
  • I've found a other section list: http://code.google.com/p/android-section-list/ but I still have the same question. I like to add a search and scrollview function. I want this one because it has a sticky header. Can you help me? – Daniel Oct 06 '11 at 13:00
  • Daniel sorry i dont follow. you want a scrollview in a list? – Jayshil Dave Jan 30 '12 at 18:01