Layout i implemented like below picture :
And code I used is :
Please try below code to implement checkview as you mentioned :
Thanks..!!