什么是Android中使用preference活动? [英] What is use of preference activity in android?

查看:102
本文介绍了什么是Android中使用preference活动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经研究了preference活动,但我不理解这一点。谁能告诉我有什么用preference活动?它是如何从活动有什么不同?

I have studied preference activity but I don't understand it. Can anybody tell me what is the use of preference activity? How does it differ from activity?

感谢

推荐答案

preferencesActivity是一种能够轻松地创建preference屏幕,如在Android的本身,只是看在设置。这些可用于内部应用程序轻松地节省preferences到<一个href="http://developer.android.com/reference/android/content/Shared$p$pferences.html">Shared$p$pferences然后<一href="http://stackoverflow.com/questions/2614719/how-do-i-get-the-shared$p$pferences-from-a-$p$pferenceactivity-in-android">easily从你的应用程序中访问这些。

PreferencesActivity is a way to easily create preference screens such as those in Android itself, just look under Settings. These can be used inside applications to easily save preferences to SharedPreferences and then easily access these from within your app.

有关preferenceActivity的更多信息,请参见页面

See this page for more information on PreferenceActivity.

的preferenceActivity呈现出一些preferences一个例子:

An example of a PreferenceActivity showing some preferences:

这篇关于什么是Android中使用preference活动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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