I have a custom list view populated with radio button and text views. I have implemented onListItemClick listener for listview. My problem is i want to check the radio button on clicking an row in list view , but all rows radio button state changes to true. I am unable to figure out reason onListItem Listener snippets
listView.setOnItemClickListener(new OnItemClickListener()
{
@Override
public void onItemClick(AdapterView<?> arg0, View rowView,
int pos, long id)
{
rbChgPlan = (RadioButton) rowView.findViewById(R.id.radioButton);
rbChgPlan.setChecked(true);
planId= newPlans.get(pos).plan_id;
adapter.notifyDataSetChanged();
}
});
pls providesuggestions