I had done a menu overflow items.I need to reduce menu items width,height and textview size.
I referred this post.But it is not working for me.I am posted the code and screenshot related to that:
<menu xmlns:android="http://schemas.android.com/apk/res/android"
>
<item
android:id="@+id/add"
android:icon="@drawable/down"
android:title="Read"
android:showAsAction="never"
/>
<item
android:id="@+id/add2"
android:icon="@drawable/down"
android:title="write"
android:showAsAction="never"
/>
<item
android:id="@+id/add3"
android:icon="@drawable/down"
android:title="bold"
android:showAsAction="never"
/>
</menu>
Menu Item Screenshot:
styles.xml:
<style name="AppBaseTheme" parent="android:Theme.Light">
</style>
<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<item name="android:actionOverflowButtonStyle">@style/MyActionButtonOverflow</item>
</style>
<style name="MyActionButtonOverflow" parent="android:style/Widget.Holo.ActionButton.Overflow">
<item name="android:src">@drawable/down</item>
</style>
My only problem is,I need to reduce the width,height and textview Size in menu items.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…