Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
private View.OnClickListener getOnClickListener(final int position, @NonNull final ListView parent) {
return new View.OnClickListener() {
@Override
public void onClick(View v) {
parent.performItemClick(v, position, filteredData[position].getId());
}
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment