开发者

Preference UI Components without PrefernceActivity

开发者 https://www.devze.com 2023-03-10 00:37 出处:网络
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.

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

精彩评论

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