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

 

posted @ 2014-04-13 11:55  欢醉  阅读(651)  评论(0编辑  收藏  举报