我是安卓新手。我想开发一个带有操作栏溢出菜单的页面。我的模拟器显示正确。Bt 我在手机上看不到它。安卓4.1.2版本的手机请帮帮我....
安卓清单
<uses-sdk android:minSdkVersion="11" android:targetSdkVersion="17" /> <application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > <activity...
样式.xml
<!-- Application theme. -->` <style name="AppTheme" parent="android:style/Theme.Holo.Light"> <item name="android:actionOverflowButtonStyle">@style/MyActionButtonOverflow</item> </style> <style name="MyActionButtonOverflow" parent="android:style/Widget.Holo.ActionButton.Overflow"> <item name="android:src">@drawable/settings</item> </style>`
菜单.xml
<menu xmlns:android="schemas.android.com/apk/res/android"; <item android:id="@+id/action_instructions" android:orderInCategory="100" android:showAsAction="never" android:onClick="doInstructions" android:title="@string/action_instructions"/> </menu>