We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Can you help me with implementing it to the ViewPager's Adapter. Here is code how I implemented basic CheckBox. RecyclerView with Multi items
@Override public void onBindViewHolder(final ViewHolder viewHolder, final int position) { final int pos = position; viewHolder.chkSelected.setOnCheckedChangeListener(null); viewHolder.chkSelected.setChecked(genreList.get(position).isSelected()); viewHolder.chkSelected.setTag(genreList.get(position)); viewHolder.chkSelected.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { CheckBox cb = (CheckBox) v; Genres gr = (Genres) cb.getTag(); tinyDB = new TinyDB(v.getContext()); if (cb.isChecked()) { gr.setSelected(cb.isChecked()); genreList.get(pos).setSelected(cb.isChecked()); cgIntegerList.add(pos); } else { cgIntegerList.remove(Integer.valueOf(pos)); } } }); }
Btw, nice CB! It looks awesome!
The text was updated successfully, but these errors were encountered:
viewHolder.chkSelected is AnimCheckBox ? why are you setOnClickListener for viewHolder.chkSelected
Sorry, something went wrong.
No branches or pull requests
Can you help me with implementing it to the ViewPager's Adapter.
Here is code how I implemented basic CheckBox. RecyclerView with Multi items
Btw, nice CB! It looks awesome!
The text was updated successfully, but these errors were encountered: