I have a scrollview which contains a list of checkboxes, now I have to set a value of integers corresponding to each checkbox depending on its state. I can do this by applying onClickListner for every checkbox but I think I am not thinking it straight and it can be done with just one cliclListener like we do in case of buttons by implementing onClickListener. Help me out here.
Share
You can use single
OnClickListnerand useswitch casestatementand set this onClickListner for Your whole View.