Create PreferenceDialog onClick on filter popup?

大城市里の小女人 提交于 2019-12-24 23:13:01

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!