Questions tagged [android-filterable]

132 questions
0
votes
0 answers

android: filter arrayList with 2 strings in adapter

I have an ArrayList where I only want to show the Items that contain the strings "dish" or "sideDish". At first I had a for-loop in the getItem function but it wasn't good for the performance so I tried to do it with a filter. public Filter…
nolags
  • 583
  • 1
  • 4
  • 23
0
votes
1 answer

Searching not working in custom list view

I have referred to this , this also and this one too. No where I am finding the solution of my problem. On typing in edit text No filtering is there and list view remains as it is Here is the code: MainActivity.java public class MainActivity extends…
Urja Pawar
  • 808
  • 1
  • 10
  • 27
0
votes
1 answer

dynamic Kendogrid filterable

Is it possible to setup a custom filter for kendoGrid where values being entered wont behave as an auto-complete, but automatically filters as you type for string contains? like angular ng-show ?. Current behavior, you gotta select from a lookup or…
Mike Gmez
  • 103
  • 1
  • 14
0
votes
1 answer

ListView custom filter with search box gives wrong item selected when filtered

I have a listview getting filtered by an edit text on top. However when i click on the item searched i get the result of another data being selected. For instance, my list contains A, B, C. When I want to search the list for things starting with B,…
0
votes
1 answer

Unable to filter listview items

I am trying to list all the installed applications and filter the result in the list view dynamically. below is my code in the listadapter.java: import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import…
A KA
  • 75
  • 5
0
votes
1 answer

Filtering ListView extending BaseAdapter

In my application I retrieve all the names of restaurants from the parse database and I added a search bar on the top of my list so I can search for names in my list.I have a problem in the ListViewAdpater. public class ListViewAdapter extends…
F.J
  • 5
  • 4
0
votes
0 answers

Filtering custom adapter on more than one condition

I am looking for something like a compound NSPredict but for Android. I have a listView populated with data with different attribute. Currently, I can only filter on one condition say name. What I want to do is to make it possible for user to search…
saintjab
  • 1,418
  • 16
  • 25
0
votes
0 answers

Adapter is not modified from a background thread, but only from the UI thread

**I've an Activity with a EditText (named "filtro") and a ListView (named "list_view"). When the user inserts text, the adapter should be refresh; if i change text many times, comes a crash followed by the message "Make sure the content of your…
0
votes
0 answers

How can I implement filter in Navigation Drawer List Item

I have a long list item on navigation drawer, I have added an EditText on top of it, but also implemented filterable on the custom adapter, but application crashes when I add this line of code EditText searchSongs =…
Acushla
  • 39
  • 5
0
votes
0 answers

Android implement a Filterable adapter efficiently

I want to add a filter on my ListView. I already know how to do it (by making the adapter implement Filterable), but I got some questions about it. 1) The examples I've seen always iterate through the entire list of items, checking for each one if…
Yonatan Nir
  • 8,303
  • 23
  • 80
  • 156
0
votes
0 answers

Using Filterable in Search Activity Android

I am getting no difference in results whereas they should be filtered as I type in the searchable view. Here is my code please help. This code runs but doesn't filter anything. public boolean onQueryTextChange(String newText) { …
ChiggyB
  • 35
  • 7
0
votes
1 answer

filter not being invoked by ArrayAdapter sub-class

It seems that this should be easy. I have an Android app with a list using an ArrayAdapter. It works. I replace the ArrayAdapter with a custom sub-class. It works. I add a inner class that is a sub-class of Filter and mark the ArrayAdaptor sub-class…
Ray Kiddy
  • 3,003
  • 2
  • 20
  • 29
0
votes
0 answers

Custom filter in array adaptor

I want to search the custom listview (Used arrayadaptor) items based on the user input.I have already implements filterable class in my custom listview, But for optimizing the cache memory i have used holder to carry the current row. Now its become…
0
votes
1 answer

Filtering in RecyclerView takes long

I am testing with a set of about 5000 objects. I use a custom comparator(MyOwnSort) to sort values based on business logic. public Filter getFilter() { if (_filter == null) { _filter = new Filter() { @Override …
0
votes
1 answer

ExpandableListView child order is incorrect after filter

Hey guys this is how I added stuff to my expandablelist.. listDataHeader = new ArrayList(Arrays.asList("Afghanistan", "Albania", "Algeria", "Andorra", "Angola", "Anguilla", …
1 2 3
8
9