com.arlib.floatingsearchview.suggestions.SearchSuggestionsAdapter Java Examples

The following examples show how to use com.arlib.floatingsearchview.suggestions.SearchSuggestionsAdapter. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: FloatingSearchView.java    From floatingsearchview with Apache License 2.0 3 votes vote down vote up
/**
 * Set a callback that will be called after each suggestion view in the suggestions recycler
 * list is bound. This allows for customized binding for specific items in the list.
 *
 * @param callback A callback to be called after a suggestion is bound by the suggestions list's
 *                 adapter.
 */
public void setOnBindSuggestionCallback(SearchSuggestionsAdapter.OnBindSuggestionCallback callback) {
    this.mOnBindSuggestionCallback = callback;
    if (mSuggestionsAdapter != null) {
        mSuggestionsAdapter.setOnBindSuggestionCallback(mOnBindSuggestionCallback);
    }
}