0

I have created a multiple contacts picker in which i am showing list of all the contacts in the listview with checkbox, but what i want to do is that now i want to place one edittext at the top so as to allow user to scroll through the list quickly. For example if user types letter D in the edittext it should scroll down to the position where names starts with D. I am using CustomAdapter to fill the data in the list.

Tapan Desai
  • 848
  • 2
  • 14
  • 36
  • @Eric i didnt get what you are trying to say? – Tapan Desai Oct 21 '12 at 04:51
  • Have you done any research into how you would accomplish this? We're not here to just hand out code snippets, we want to see you make an effort and help you solve your problem. (You can see exactly what I mean in [this blog post](http://mattgemmell.com/2008/12/08/what-have-you-tried/).) – Cat Oct 21 '12 at 04:56
  • @Eric i just want an idea or hint about how can i accomplish this thing. i will manage the coding myself – Tapan Desai Oct 21 '12 at 05:06
  • 1
    Its just a hint.I m not from android.dont mistake if i am wrong. add a textwatcher to the edittext and find whenever text changes and search in an array, which you used to populate your listview and get the "index" of an item and scroll your list to that "index" position. – Dinesh Raja Oct 21 '12 at 05:23
  • Hi tapan, Did you solve your problem?? Actually I have the same problem. can you help me out?? because your accepted answer is not helping much. – UdiT May 30 '13 at 08:01
  • There's an answer marked as the answer, but... it really doesn't specially answer this question at all. The link within the answer shows how you can change the position of the scroll, but... how do you jump down to a text value within a listview? – Herb Meehan Apr 01 '15 at 09:28

1 Answers1

0

Did you get a chance to look at Maintain/Save/Restore scroll position when returning to a ListView

Community
  • 1
  • 1
AppMobiGurmeet
  • 719
  • 3
  • 6