androidfilterdialogpopupwindowandroid-optionsmenu

PopupWindow or Dialog?


I want to show a custom Filtering Menu when clicking an item/action's icon from the OptionsMenu, and I was wondering how shall I do it, either navigating to a DialogFragment or showing a PopupWindow and place any of them on the right side of the screen.

Any other better option is also welcome :) thanks


Solution

  • For the PopUp option, either you can create a custom one (or using ListPopupWindow or using for instance the PowerMenu library.

    But it depends the UI you have in mind, the design you shared perhaps is multi-selector option, also there's the button of apply changes, where in PopUpWindow it's with a click, and also the reset filter button there in the same filter.

    To know better the difference between them read this answer it might help you which way you should take.