Cannot override the final method from SherlockFragmentActivity

调用ActionBarSherlock后页面找不到onCreateOptionsMenu报错

com.actionbarsherlock.app.SherlockFragmentActivity.onCreateOptionsMenu

Cannot override the final method from SherlockFragmentActivity

@Override
public boolean onOptionsItemSelected(MenuItem item)
{
int id = item.getItemId(); if (id == android.R.id.home) { rbmView.toggleMenu(); return true; } else {
return super.onOptionsItemSelected(item);
}
}

网上的一个方法是将MenuItem替换为com.actionbarsherlock.view.MenuItem

上一篇:CSS Table Gallery


下一篇:rh6安装oracle11g+ASM