私はAndroidが初めてです。アクション バーのオーバーフロー メニューを含むページを開発したいと考えています。エミュレーターでは正しく表示されますが、電話では表示されません。4.1.2 Android バージョンの電話 助けてください....
Android マニフェスト
<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>