As you can see in the image I have added radio buttons in my list, but I only want one to be selected, I am using simpleCursorAdapter
I can select an item in the following way and without problem adding to my variable the name of the selected item.
....
String folio;
Seleccionado.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
TextView infofolio = (TextView)view.findViewById(R.id.txtFolio);
TextView infohuerto = (TextView)view.findViewById(R.id.txtHuerto);
folio = infofolio.getText().toString();
}
});
but how could I use the part of the radiobuttons and that only one can be selected and pass the name to my variable folio?