问题
My goal is to implement the image below.
How to create a PreferenceDialog if the filter icon in my toolbar has been clicked?
I want to set some preferences to filter the entries of my list.
I'm at this point. Is that the right way to implement this?
回答1:
Yes sir, it is!
You should inflate the resource first and set it as a custom view. AlertDialog should do the trick after that. Do you have any further question? Or do you only need to check if it's the right way to do it?
来源:https://stackoverflow.com/questions/31811381/create-preferencedialog-onclick-on-filter-popup