2013/3/6 Latimerius <[email protected]>

> On Tue, Mar 5, 2013 at 6:25 PM, Latimerius <[email protected]> wrote:
>
>> On Tue, Mar 5, 2013 at 5:41 PM, Piren <[email protected]> wrote:
>>
>>> - Dont use a different Activity to show Prefs (you can re-use your
>>> current one, i personally always disliked the PreferencesActivity class..
>>> its ugly as fuck)
>>>
>>
>>
>>> you can either just replace your current contentView or use other
>>> containers like ViewSwitcher/ViewPager and etc  to switch between the main
>>> app and the preferences view.
>>>
>>
>> Thanks for pointing this out, it never occurred to me that I could reuse
>> my main activity instance... clever. :-)  Now trying to figure out how to
>> construct the preferences view.  I'm also using
>> PreferenceActivity.onSharedPreferenceChanged() so I'll have to have a
>> replacement for that too.
>>
>>
> Alas, it doesn't seem to be easy to inflate a preferences XML into a View
> hierarchy (this link
> http://stackoverflow.com/questions/4642858/how-to-display-preferences-in-a-view
>  even
> suggests it's not possible at all!), let alone get the whole preferences
> machinery working outside of PreferenceActivity.
>
> Have you actually done it, or are you just assuming it should be doable?
>

How about a PreferenceActivity with theme=@style/Theme.Dialog?

I also wonder what you do for when the screen is blanked -- which triggers
onPause / onStop depending on Android version.

-- K


>
>  --
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to