Android menu and action bar conversion

前端 未结 4 791
感动是毒
感动是毒 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:16

    You can use some os technology to provide actionbar in apps with API level less then 11.

    Consider using ActionBarSherlock. You can just add it as library project to your project and if you won't set the Sherlock theme it won't show action bar(in case you don't want to show it), yet you can mark your menuitems with "showAsAction". On devices with API level higher than 10, action bar with your menuitems will be normally shown.

提交回复
热议问题