Re: [android-developers] Simulate PreferenceActivity with Fragment

2012-05-10 Thread Nikolay Elenkov
On Fri, May 11, 2012 at 5:10 AM, RMartins  wrote:
> I'm gonna explore this for sure, anyway do you have a nice clean example of
> the usage you mention? Anyway thanks very much Nicolay!!!
>
>

Hm, sorry, you are right, there is not SherlockPreferenceFragment, only
SherlockPreferenceActivity. You can't embed this in a ViewPager.
What you could try to do is, copy the source of PreferenceFragment
and try to port it using the ABS classes. There are some comments
about it here, might be useful:

https://github.com/JakeWharton/ActionBarSherlock/issues/43

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Simulate PreferenceActivity with Fragment

2012-05-10 Thread RMartins
I'm gonna explore this for sure, anyway do you have a nice clean example of 
the usage you mention? Anyway thanks very much Nicolay!!!

Quinta-feira, 10 de Maio de 2012 7:20:41 UTC+1, Nikolay Elenkov escreveu:
>
> On Thu, May 10, 2012 at 2:31 PM, Justin Anderson  
> wrote: 
> > Would the Android Compatibility Library help by chance? 
> > http://android-developers.blogspot.com/2011/03/fragments-for-all.html 
> > 
>
> The compatibility library doesn't have a PreferenceFragment, but 
> ActionBarSherlock does. 
> You should be able to use it but you need to integrate the library in 
> your app, you can't 
> just pull that class in. 
>
> http://actionbarsherlock.com/ 
>
>
> https://github.com/JakeWharton/ActionBarSherlock/blob/master/library/src/com/actionbarsherlock/app/SherlockPreferenceActivity.java
>  
>
> BTW, you can't embed an activity in a fragment (or nest fragments). 
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Simulate PreferenceActivity with Fragment

2012-05-10 Thread RMartins
I've already have that, FragmentPreference is not included :(, but thanks 
anyway!!!

Quinta-feira, 10 de Maio de 2012 6:31:30 UTC+1, MagouyaWare escreveu:
>
> Would the Android Compatibility Library help by chance?
> http://android-developers.blogspot.com/2011/03/fragments-for-all.html
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
> On Tue, May 8, 2012 at 3:07 PM, RMartins  wrote:
>
>> Hi,
>>
>> I'm developing a ViewPager with several fragments, one of them I want it 
>> to be a "PreferenceActivity" the problem is that I'm using API7, so no 
>> PreferencesFragment... I've already search for a way to embed an activity 
>> (PreferencesActivity) in a Fragment, and given up for lack of results. So 
>> my next take is to "build" a preference activity Look and feel in a 
>> fragment, so my question is this how can I build an interface that looks 
>> just like the preference activity, more specifically a listPreferences 
>> lookalike (with the text title and description, icon, behavior, etc)?
>>
>> Thanks very much for your help!
>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to android-developers@googlegroups.com
>> To unsubscribe from this group, send email to
>> android-developers+unsubscr...@googlegroups.com
>> 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 post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Simulate PreferenceActivity with Fragment

2012-05-09 Thread Nikolay Elenkov
On Thu, May 10, 2012 at 2:31 PM, Justin Anderson  wrote:
> Would the Android Compatibility Library help by chance?
> http://android-developers.blogspot.com/2011/03/fragments-for-all.html
>

The compatibility library doesn't have a PreferenceFragment, but
ActionBarSherlock does.
You should be able to use it but you need to integrate the library in
your app, you can't
just pull that class in.

http://actionbarsherlock.com/

https://github.com/JakeWharton/ActionBarSherlock/blob/master/library/src/com/actionbarsherlock/app/SherlockPreferenceActivity.java

BTW, you can't embed an activity in a fragment (or nest fragments).

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Simulate PreferenceActivity with Fragment

2012-05-09 Thread Justin Anderson
Would the Android Compatibility Library help by chance?
http://android-developers.blogspot.com/2011/03/fragments-for-all.html

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Tue, May 8, 2012 at 3:07 PM, RMartins  wrote:

> Hi,
>
> I'm developing a ViewPager with several fragments, one of them I want it
> to be a "PreferenceActivity" the problem is that I'm using API7, so no
> PreferencesFragment... I've already search for a way to embed an activity
> (PreferencesActivity) in a Fragment, and given up for lack of results. So
> my next take is to "build" a preference activity Look and feel in a
> fragment, so my question is this how can I build an interface that looks
> just like the preference activity, more specifically a listPreferences
> lookalike (with the text title and description, icon, behavior, etc)?
>
> Thanks very much for your help!
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> 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 post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Simulate PreferenceActivity with Fragment

2012-05-09 Thread RMartins
Hi,

I'm developing a ViewPager with several fragments, one of them I want it to 
be a "PreferenceActivity" the problem is that I'm using API7, so no 
PreferencesFragment... I've already search for a way to embed an activity 
(PreferencesActivity) in a Fragment, and given up for lack of results. So 
my next take is to "build" a preference activity Look and feel in a 
fragment, so my question is this how can I build an interface that looks 
just like the preference activity, more specifically a listPreferences 
lookalike (with the text title and description, icon, behavior, etc)?

Thanks very much for your help!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en