Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added adapter factory for customize the list view elements in the dialog #29

Closed
wants to merge 1 commit into from
Closed

Added adapter factory for customize the list view elements in the dialog #29

wants to merge 1 commit into from

Conversation

giacomomagini
Copy link

When you declare and configure the searchable spinner, can specify how instantiate the adpter for list view in the dialog. Below an example:

mSpinner.setDialogAdapterFactory(new SearchableListDialog.AdapterFactory() {
@OverRide
public ArrayAdapter newInstance(List list) {
return new MyCustomArrayAdapter(getContext(),list);
}
});

@velval
Copy link

velval commented Feb 14, 2017

This should be merged to allow custom adapters on the ListView

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants