Android menu and action bar conversion

前端 未结 4 795
感动是毒
感动是毒 2021-02-09 20:41

There is a new concept in Android:

http://android-developers.blogspot.com/2012/01/say-goodbye-to-menu-button.html

But it isn\'t clear fro me. I have an applicati

4条回答
  •  无人及你
    2021-02-09 21:22

    Go to project properties in Eclipse (right-click on project and select Properties), then go to Android section, and change Project Build Target to Android 4.0. This must be done so that the build system recognizes showAsAction.

    Don't worry that your project won't be runnable on Android less than 4.0, you can still run it as long as you don't call a class or method available only on 4.0.

提交回复
热议问题