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:
add textchangelistener inputtext (reference http://www.mysamplecode.com/2012/06/android-edittext-text-change-listener.html);
at end of listener, filter list , pass filtered list adapter, call notifydatasetchanged();
Comments
Post a Comment