Dynamic list view with dynamic adapter with click event for each item
<p>I am fetching data from database in ArrayList.In database we have country name , shop name, so on list view I want to display country name then Related shop name with chech box ..suppose if there is 5 country then it should display data for 5 country and if 2 country then it should display data for two country. 
I have tried and created custom adapter but I am not getting click event for different shop with different country.
Please its very urgent .help me please
please provide code . Any help will be highly appreciated</p>
