开发者

Preference UI Components without PrefernceActivity

Is there a way to use the ui Components from the preference package without a PreferenceActivity?

I have t开发者_StackOverflowo build a lot of settingsviews, and i cant use sharedprefernces.

Do i Have to build this all by hand?

Vino


Is there a way to use the ui Components from the preference package without a PreferenceActivity?

Preferences are built using normal widgets, such as ListView, CheckedTextView, etc.

You cannot use subclasses of Preference outside of PreferenceActivity, though.

I have to build a lot of settingsviews

Use SharedPreferences and PreferenceActivity for user settings.

Do i Have to build this all by hand?

Apparently, yes. Then again, most quality Android applications' user interfaces are built "by hand".

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜