如何在浮动操作菜单中删除图标间隙。我想要没有图标的设置。 看图像:
这里是菜单代码
<item
android:id="@+id/menu_delete"
android:icon="@android:drawable/ic_menu_delete"
android:showAsAction="ifRoom"
android:title="Delete email"
android:titleCondensed="Delete">
</item>
<item
android:id="@+id/menu_more"
android:icon="@drawable/abc_ic_menu_moreoverflow_normal_holo_light"
android:title="Settings"
android:showAsAction="always">
<menu>
<item
android:id="@+id/submenu_readAllJobs"
android:title="@string/ReadAllJobsEmail"/>
<item
android:id="@+id/submenu_deleteAllJobs"
android:title="@string/DeleteAllJobsEmail"/>
</menu>
</item>
答案 0 :(得分:0)
通过将菜单代码更改为以下内容解决了问题:
<item
android:id="@+id/menu_delete"
android:icon="@android:drawable/ic_menu_delete"
android:showAsAction="ifRoom"
android:title="Delete email"
android:titleCondensed="Delete">
</item>
<item
android:id="@+id/submenu_readAllJobs"
android:title="@string/ReadAllJobsEmail"
app:showAsAction="never"
/>
<item
android:id="@+id/submenu_deleteAllJobs"
android:title="@string/DeleteAllJobsEmail"
app:showAsAction="never"
/>
结果图片: