android - Scroll to searched text and bringing it on top of the textview -


i have search option user can search word given textview. example of sample textview , if user searches "cupy cup n" text in blue box should scrolled top first line.

i have tried answer here don't know how find line number of searched text.

can more specific? cannot understand want. understand have either listview or recyclerview , want filter results based on typed text in inputtext (i.e.). in order achieve can do:

  1. add textchangelistener inputtext (reference http://www.mysamplecode.com/2012/06/android-edittext-text-change-listener.html);

  2. at end of listener, filter list , pass filtered list adapter, call notifydatasetchanged();


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -