How to enable bottom menu button in android 4.0 ICS

后端 未结 3 1671
自闭症患者
自闭症患者 2021-01-13 01:16

I want to enable bottom menu button and Which theme will be use for this menu button.I try many theme but did not work for me by the any theme.How can I achieve this?. Thank

相关标签:
3条回答
  • 2021-01-13 01:39

    If your target-sdk is <4.0, you are not using support library in your project, and if you haven't used ActionBarSherlock then this overflow menu should appear automatically, if you've overriden onOptionCreateMenu() method, on phones that only have soft buttons.

    0 讨论(0)
  • 2021-01-13 01:44

    If you set your targetSdkVersion in the manifest to 10 or less Android assumes your app depends on a menu button and will show it. Otherwise, menu items are available in the action bar.

    0 讨论(0)
  • 2021-01-13 01:53

    enter image description here

    set android:targetSdkVersion="8" in manifest.xml , Image is taken from Samsung galaxy nexus

    Example

    <uses-sdk
        android:minSdkVersion="8"
        android:maxSdkVersion="17"
        android:targetSdkVersion="8" />
    
    0 讨论(0)
提交回复
热议问题