Hi so basically im trying to have a list in extends ListActivity and
stuff but right now im trying to get a listview of radio buttons which
i guess works but now im trying to apply a radio group for the list.
This is the part im stuck on so basically
once i created my own array adapter i wanted to make in the getView
function every added View(which is radiobutton) to go into the array
adapter add to my radio group
public View getView(int position, View convertView, ViewGroup parent)
{
// TODO Auto-generated method stub
//return super.getView(position, convertView, parent);
LayoutInflater inflater=getLayoutInflater();
View row=inflater.inflate(R.layout.radio, parent, false);
//CheckedTextView
label=(CheckedTextView)row.findViewById(R.id.text1);
RadioButton label =
(RadioButton)row.findViewById(R.id.RadioButton01);
mRadioGroup.addView(label, position, layoutParams);
label.setText(zones.get(position));
return row;
my layout radio.xml just has a
radiogroup
radiobutton inside radiogroup
so the only line that doesnt work is the call to add view in
mRadioGroup
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en