Search code examples
androidpopup

Android : How to make Popup Menu to have same width as its anchor?


I want to make Popup Menu which does similar operation like spinner where I need select one item from its dropdown popup.

I am not able to achieve Popup Menu of same width of its Anchor.

Any help would be appreciated. Thanks


Solution

  • Why you are using custom view with popup menu. Its better you can use spinner and spinner its provide own dropdown list window you can able to set design whatever you want.