I'm trying to get data from my custom list view cells , I have radio buttons and I'm trying to get the data from them how can I do that
My Custom List code :
private class customList extends ArrayAdapter<String> {
public customList(Context context, int resource, List<String> objects) {
    super(context, resource, objects);
}
@Override
public View getView(final int position, View convertView, ViewGroup parent) {
    LayoutInflater layoutInflater = (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE);
    View row = layoutInflater.inflate(R.layout.custom_list , parent , false);
    //ParseObject parseObject = new ParseObject("Questions");
    //getParseData = new GetParseData(parseObject ,strQuestion);
    // getParseData.getQuestion(position);
    TextView tv = (TextView)row.findViewById(R.id.tvNameC);
    tv.setText(nameList.get(position).toString());
    final RadioGroup rg = (RadioGroup)row.findViewById(R.id.rg);
    ParseQuery<ParseObject> query = ParseQuery.getQuery("test");
    query.whereExists("arr");
    query.findInBackground(new FindCallback<ParseObject>() {
        public void done(List<ParseObject>List, ParseException e) {
            if (e == null) {
                strList = List.get(position).getList("arr");
                Log.e("Array Is " , strList.toString());
                final RadioButton[] radioButtons = new RadioButton[strList.size()];
                for(int i = 0 ; i < radioButtons.length ; i++)
                {
                    radioButtons[i] = new RadioButton(getApplicationContext());
                    radioButtons[i].setText(strList.get(i).toString());
                    radioButtons[i].setTextColor(Color.BLACK);
                    rg.addView(radioButtons[i]);
                }
                idForMethod = rg.getCheckedRadioButtonId();
            } else {
                Log.d("score", "Error: " + e.getMessage());
            }
        }
    });
    return row ;
}
 
     
     
     
     
    