Back to project page permission-explorer.
The source code is released under:
Copyright (C) 2012 Rui Gon?alves and Daniel Cibr?o Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),...
If you think the Android project permission-explorer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package pt.up.fe.ssin.pexplorer.utils.ui; //from w w w. j a v a 2 s .c o m import android.text.Editable; import android.text.TextWatcher; import android.widget.Filterable; public class FilterTextWatcher implements TextWatcher { private Filterable filterable; public FilterTextWatcher(Filterable filterable) { this.filterable = filterable; } @Override public void onTextChanged(CharSequence s, int start, int before, int count) { filterable.getFilter().filter(s); } @Override public void afterTextChanged(Editable s) { } @Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { } }