ChadCSong / ShineButton

This is a UI lib for Android. Effects like shining.
MIT License
4.22k stars 547 forks source link

Shine button automatically getting checked. #18

Open imneeraj opened 8 years ago

imneeraj commented 8 years ago

Hi i'm using shinebutton in recyclerView. When i check the button and scroll down other buttons are automatically getting checked. same thing happening with unchecked.

thewthew commented 7 years ago

I haven't tried this project but I guess you might have the problem with any classic button in lists when you scroll down : I had the same problem. My solution was to had a holder to the buttons, this should help you [http://stackoverflow.com/questions/1709166/android-listview-elements-with-multiple-clickable-buttons]

srujanb commented 7 years ago

@imneeraj I havent used this lib yet, but I guess you wrote your code in onCreateViewHolder() instead of onBindViewHolder(). Change it and your problem will most prob be solved.

hechenyu1995 commented 7 years ago

@srujan7 My idea is he just forget to judge the statement in onBindViewHolder().In onCreateViewHolder(),adapter usually do not connnect to datas.

srujanb commented 7 years ago

@hechenyu1995 didn't get you.