I want to change the space between items in my popupmenu on android
I hope there is a straight foward solution, but as i know android it shall not be so simple
anyway i would like also to set the maxHeight
of my popUp...
In this case popup is achored by the TextView "Select the prize" so it fills the space above it, but not all the items fit in that space so android automatically creates an scrow view (on vertical)
the thing is, I know 100% of users wont use this scroll so the items in my menu bellow "Travel" will never be seen.
How can i set the height in order to make enough space to all items?
=============UPDATE================
Just to make it clear, this isn't a spinner it is a popupmenu
this.popupCategories = new PopupMenu(this, this.categoryLabel);
for (Giveaway.GiveawayCategoryGroup catGroup : categoryGroups) {
SubMenu submenu = this.popupCategories.getMenu().addSubMenu(catGroup.getDescription(lang));
for (Giveaway.GiveawayCategory cat : (Collection<? extends Giveaway.GiveawayCategory>) catGroup.getCategories()) {
if (cat.isActive())
submenu.add(Menu.NONE, cat.getValue().hashCode(), (int) cat.getOrder(), cat.getDescription(lang));
}
}