JakeWharton/ActionBarSherlock — Issue #250: Issue with grouped options menu
Author: deviant-studio
Created: 2012-02-10 17:54:10+00:00
State: open

Hi there. I have another one issue. I have a group of menu items:

Note that group have android:checkableBehavior="single" attribute. That means if I choose one of items from that group and check it in the code, another items should to be unchecked automatically:

public boolean onOptionsItemSelected(MenuItem item) {
int index = -1;
switch (item.getItemId()) {
case R.id.im_sort_artistic:
index = SORT_ARTISTIC;
break;
case R.id.im_sort_original:
index = SORT_ORIGINAL;
break;
case R.id.im_sort_technic:
index = SORT_TECHNICAL;
break;

}
if (index != -1) {
item.setChecked(true);
}

return super.onOptionsItemSelected(item);
}

On device with 2.3.3 this code works fine, But on Emulator with ICS items do not unchecks.
Here is screenshot: http://gyazo.com/af60e0a1e9c00eddf2e1f5d9ec316d93.png?1328895435

Also I have a problem with appearing action items on emulator 2.1, but I think I should post another issue here