我使用ActionBarSherlock,并试图通过getSupportMenuInflator()
夸大我的XML的菜单,但它给了一个错误:ActionBarSherlock:getSupportMenuInflator()是未定义
the method getSupportMenuInflator() is undefined for the type ...
我无法找出原因它显示错误。这里是代码:
public void onCreateOptionsMenu(Menu menu) {
getSupportMenuInflater().inflate(R.menu.activity_main, menu);
...
}
我该如何解决?
你有没有包含在项目的ABS库? – SKK
是的,这是我做的第一件事。 – user1951690