android - How to add the category on preference header? -
I have a simple and some of my Thank you for your help. It has been said to have been close to one year since this but I I think that enough detail and explanation in the description describes the need to run in this example. I hope this will help someone as it has helped me since this statement Cheers. The process of creating screens with categories and headers on the same page to create a preference screen! preference_headers.xml file. I want to add some categories to my preference titles. PreferenceCategory / & gt; I tried to implement in my
preference_headers.xml , but it does not work. I am using API Level 11. Android developers can add categories as shown in the picture below. How can I add this too?
Preference_headers.xml code. This will not work:
& lt; Priority-header xmlns: Android = "http://schemas.android.com/apk/res/android" & gt; & Lt; PreferenceCategory Android: Title = "Account" & gt; & Lt; Header Android: Piece = "ComkexamplekpreferenceheaderkSettingsFragmentAccount" android: title = "@ string / pref_header_category_account" android: summary = "@ string / pref_header_summ_account" android: icon = "@ drawable / ic_action_settings" / & gt; & Lt; / PreferenceCategory & gt; & Lt; PreferenceCategory Android: Title = "Apps" & gt; & Lt; Header Android: Piece = "ComkexamplekpreferenceheaderkSettingsFragmentApplication" android: title = "@ string / pref_header_category_application" android: summary = "@ string / pref_header_summ_application" android: icon = "@ drawable / ic_action_group" / & gt; & Lt; / PreferenceCategory & gt; & Lt; / Preferences-header & gt;
Comments
Post a Comment