E
E
Evgeny Nizamiev2015-03-04 16:38:52
Java
Evgeny Nizamiev, 2015-03-04 16:38:52

Why does the icon shift appear in the menu?

Not why the icons in the drop-down menu are displaced, well, more precisely, it is clear that the icons appear indented and it all moves, but I don’t understand how to do it normally?
Screenshots:

spoiler
4495a562124e41228627da01b4efa701.jpgad02a0ff92474c1999afb5f662875c16.jpg

Code: github

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Lebedev, 2015-03-04
@RadiationX

I don't have a device to check, but it looks like it's the styles applied to the dropdown list, since the code looks correct.

<style name="popup_menu_style_bl" parent="@android:style/Widget.Holo.ListPopupWindow">
        <item name="android:popupBackground">@drawable/popup_menu_bl</item>
</style>

Try removing the styles altogether and see what happens.
UPD:
I checked the version from the repository on the phone - there are no shifts. Perhaps the firmware manufacturer is to blame - it uses incorrectly written, again, styles. Already encountered this on some phones.
Here are pictures from Lenovo S820, Android 4.4.2.
Check it out on multiple devices.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question