-
-
Save jezinka/4f3648f536021b24efbd12fd857a2c5d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
listView.setOnItemClickListener(new AdapterView.OnItemClickListener() { | |
@Override | |
public void onItemClick(AdapterView<?> parent, View view, int position, long id) { | |
ingredientListAdapter.getItem(position).setChecked(!ingredientListAdapter.getItem(position).isChecked()); | |
ingredientListAdapter.notifyDataSetChanged(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment