我需要在preferences自定义对话框 [英] I need to have a custom dialog in Preferences

查看:127
本文介绍了我需要在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆