title: How to create a submenu with radio buttons in Android?
body: <p>I have a problem in a simple case (at least, it looks like so). I need to create a submenu for a context menu dynamically and provide each item with a radiobox. I made a lot of trials. When I call <code>menu.setGroupCheckable(0, true, true)</code>, where 0 is by default the menu itself, it displays radio buttons to the right on every menu item as expected, but I need this for submenu. So I have the following code:</p>
  
  <pre><code>SubMenu sub = menu.addSubMenu(R.string.name);
  int count = 1000;
  for(String e : someList)
  {
    MenuItem item = sub.add(1, count, count, e);
    count++;
  }
  menu.setGroupCheckable(1, true, true);
  </code></pre>
  
  <p>In this case I don't see neither radioboxes, nor checkboxes in the submenu. Then I wrote the following code:</p>
  
  <pre><code>SubMenu sub = menu.addSubMenu(R.string.name);
  int count = 1000;
  for(String e : someList)
  {
    MenuItem item = sub.add(1, count, count, e);
    item.setCheckable(true);
    count++;
  }
  menu.setGroupCheckable(1, true, true);
  </code></pre>
  
  <p>This makes the submenu to have a checkbox in every item, and the checkboxes work exclusively, but I want radioboxes, because they look more intuitively for exclusive selection.</p>
  
  <p>So, how can this be accomplished?</p>