Bug 1213486 - Resize shareplane in top level menu. r=liuche

The menu code is hard to change (I filed bug 1216328) so I opted
to save time by adjusting the padding in the image with an inset
drawable. It'd be better to adjust it statically in the menu code.

--HG--
extra : commitid : D47jDAhHbJV
extra : rebase_source : 9025c9a6e6e7b0010f2f2f3c6311786bc8b2d9ab
This commit is contained in:
Michael Comella 2015-10-19 16:17:04 -04:00
Родитель 1eec8db28a
Коммит 15d941b12e
4 изменённых файлов: 17 добавлений и 3 удалений

Просмотреть файл

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<!-- It's difficult to set the menu item height because the code overrides
itself dynamically (bug xxx) so instead we add padding here. -->
<inset xmlns:android="http://schemas.android.com/apk/res/android"
android:insetTop="2dp"
android:insetBottom="2dp"
android:insetLeft="2dp"
android:insetRight="2dp"
android:drawable="@drawable/overlay_send_tab_icon"
/>

Просмотреть файл

@ -35,7 +35,7 @@
android:showAsAction="ifRoom"/>
<item android:id="@+id/send_to_device"
android:icon="@drawable/overlay_send_tab_icon"
android:icon="@drawable/overlay_send_tab_icon_menu"
android:title="@string/overlay_share_send_other"
android:showAsAction="ifRoom"/>

Просмотреть файл

@ -35,7 +35,7 @@
android:showAsAction="ifRoom"/>
<item android:id="@+id/send_to_device"
android:icon="@drawable/overlay_send_tab_icon"
android:icon="@drawable/overlay_send_tab_icon_menu"
android:title="@string/overlay_share_send_other"
android:showAsAction="ifRoom"/>

Просмотреть файл

@ -35,7 +35,7 @@
android:showAsAction="ifRoom"/>
<item android:id="@+id/send_to_device"
android:icon="@drawable/overlay_send_tab_icon"
android:icon="@drawable/overlay_send_tab_icon_menu"
android:title="@string/overlay_share_send_other"
android:showAsAction="ifRoom"/>