Drop down alignment problem (In continuation to issue #32)
royhenengel opened this issue · 0 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:
But the setYOffset doesn't work add all.
Minimum SDK = 17
Target SDK = 24