我需要在preferences自定义对话框 [英] I need to have a custom dialog in Preferences
问题描述
我搜查,但没有设法找到我所需要的。我需要有一个自定义对话框中的 preferences
(使用布局
I prepared创建)。你们可以告诉我,我应该怎么用我的preferences宣布这个自定义对话框?
I searched but didn't manage to find what I need. I need to have a custom dialog (created using layout
I prepared) in Preferences
. Can you guys tell me what should I use to declare this custom dialog in my preferences?
推荐答案
实现一个的对话preference您的自定义布局和preference添加到您的preference屏幕
Implement a DialogPreference for your custom layout and add that preference to your preference screen
下面是如何做到这一点很好的解释:
<一href=\"http://stackoverflow.com/questions/4505845/concise-way-of-writing-new-dialog$p$pference-classes\">Concise编写新的对话preference类的方法是什么?
Here is a good explanation of how to do this: Concise way of writing new DialogPreference classes?
这篇关于我需要在preferences自定义对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!