Skip to content

Instantly share code, notes, and snippets.

@Chris-Gillis
Created August 8, 2013 13:04
Show Gist options
  • Save Chris-Gillis/6184395 to your computer and use it in GitHub Desktop.
Save Chris-Gillis/6184395 to your computer and use it in GitHub Desktop.
mRadioGroup = (RadioGroup) findViewById(R.id.radioGroup);
mRadioGroup.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener(){
@Override
public void onCheckedChanged(RadioGroup group, int checkedId)
{
if(checkedId == R.id.radioButtonAll)
{
mPlacesListView.setAdapter(new KFPlaceAdapter(mActivity, allPlaces));
}
else if(checkedId == R.id.radioButtonTop)
{
mPlacesListView.setAdapter(new KFPlaceAdapter(mActivity, topPlaces));
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment