kstanoev
2/24/2015 - 1:32 PM

Filtering using the Telerik DataSource for Android

Filtering using the Telerik DataSource for Android

adapter = new AndroidDataSourceAdapter<Person>(people, this, listView);
listView.setAdapter(adapter);
filterDescriptor = new Function<Person, Boolean>() {
	@Override
	public Boolean apply(Person person) {
		return person.gender == Gender.Male && person.age > 33;
	}
};
adapter.dataSource().filterDescriptors().add(filterDescriptor);