LinearLayout hide once when uncheck the first checkbox of customize ListView

view story

http://stackoverflow.com – i saw this question android how to hide linearlayout when no checkbox is checked in listview i have listview with checkbox in each row, i want when there is at least one checkbox is selected a linearylayout (contains two buttons) to be visible and when no checkbox is selected i want that lineylayout to hide, i made exactly like that question but it works just with the first checkbox, i mean when i check the firstcheckbox it work, then if i uncheck the linearlayout hide but if i check another checkbox the linearlayout still visible all the time adapter public class AdapterFavoriteFoods exten (HowTos)