When one wants to have subscreens of the PreferenceFragment, using Headers 
is necessary. According to the official tutorial 
<http://developer.android.com/guide/topics/ui/settings.html> we must 
override the onBuildHeaders factory method to load the Headers. Problem is, 
this is my app's structure: MainActivity (AppCompatActivity) contains a 
TabLayout which displays the various activity fragments, including the 
Settings Fragment. Now what I am trying to do, is to get the Settings 
Fragment to have several subscreens, so I must use headers. The problem is, 
that the onBuildHeaders exists on PreferenceActivity's, which I don't have 
- recall I only have a generic activity with a Tablayout. My question is: 
how can I implement the headers whilst maintaining my structure - without 
using a PreferenceActivity but an AppCompatActivity?

-- 
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].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/74bec056-0369-4a4b-8465-1f962e1784a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to