shehabic / Droppy

A simple yet-powerful and fully customizable Android drop-down menu. It supports Text with/without Icons, Separators, and even fully customized views.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Drop down alignment problem (In continuation to issue #32)

royhenengel opened this issue · comments

As mentioned in the title, I this issue has been mentioned in issue #32 which was closed, but suggestions there didn't solve the issue for me.
trying the solution suggested in the last comment didn't solve it.

My code is:

DroppyMenuPopup.Builder droppyBuilder =
new DroppyMenuPopup.Builder(getActivity(), tab.getCustomView());

droppyBuilder.addMenuItem(new DroppyMenuItem("תאריך דיווח"))
.addSeparator()
.setOnClick(new DroppyClickCallbackInterface() {...}
.addMenuItem(new DroppyMenuItem("קרוב אליי"))
.setOnClick(new DroppyClickCallbackInterface() {...}
.setYOffset(50)
.setXOffset(-110);

DroppyMenuPopup droppyMenu = droppyBuilder.build();
droppyMenu.show();

As you can see in the image, setXOffset works fine (used it to move the popup window left)
from:
2016-12-23_08-56-13

to:
2016-12-23_08-50-20

But the setYOffset doesn't work add all.
Minimum SDK = 17
Target SDK = 24