Bonjour,
J'ai une 'SearchView' qui fonctionne très bien dans un Listview MAIS il ne sélectionne que les premières lettres de la sélection.
Par exemple dans :
- Informatique
- Android
Si je tape 'a' il me sort uniquement Android alors qu'il y a un 'a' dans informatique.
Je joint le Listener.
Merci.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 // quand recherche rech.setOnQueryTextListener(new SearchView.OnQueryTextListener() { @Override public boolean onQueryTextSubmit(String text) { return false; } @Override public boolean onQueryTextChange(String text) { ((Filterable) RepListe.this.liste.getAdapter()).getFilter().filter(text); return false; } });
Partager