There is a button, when clicked on which the popup menu should pop up, everything works fine, but the icons are not displayed. As I understand it, android basically does not want to display them there, it seems like even a protected class property is that prohibits them. And actually the question is how to make this menu with the smallest crutches, the easiest one can probably use which library for this, I used this https://github.com/shehabic/Droppy but there are no window hiding events and position settings of this window. I do not know maybe a spinner for this business?

How do you solve this problem?

    1 answer 1

    You can use the PopupWindow widget, which allows you to place any widgets in the popup window, including the ImageView , as well as link them in any possible way.
    The class has a showAtLocation() method for positioning on the screen, the isShowing() method is an indicator that the popup is displayed, and many other methods.

    For the menu with icons, you can use several horizontal LinearLayout with a picture and text and group them into a vertical LinearLayout or use table layout containers like TableLayout or another method available to you.

    Discussion on enSO

    • Yes, it seems, it will be faster to finish the library that I use ... - wpbloger