Questions tagged [preference-headers]
9 questions
12
votes
2 answers
How to add the category on preference header?
I have a simple preference_headers.xml file. I want to add some categories on my preference headers. I have tried to implement in my preference_headers.xml, but it doesn't work. I'm using API level 11. As shown in the figure…

Anggrayudi H
- 14,977
- 11
- 54
- 87
7
votes
1 answer
Is it possible to customize preference-header layout?
I have found similar questions, but can't find a specific answer that is up-to-date.
I'm using , as per 3.0+ settings design guidelines ( I target 4.1.2+) to build my headers; I want to set a custom layout to these headers. Note…

devrocca
- 2,497
- 2
- 19
- 27
3
votes
1 answer
Android: How to start an Activity from preference-header?
I'm trying to launch an activity from preference-header.
I searched a lot for a solution but didn't find except this question :Start activity from preference-headers.
but when applying its answer I got a new Exception…

Mohammad
- 1,185
- 1
- 14
- 26
2
votes
1 answer
How do I implement preference headers with the new Jetpack preference library?
I have an very old Android app that I am trying to update to use current libraries. Now I am trying to use the Jetpack preference library instead of the old support preference library. I have a really complicated setting hierarchy and it made…

kencorbin
- 1,958
- 1
- 20
- 18
1
vote
0 answers
How to change color of preference-headers, title
I have created preference in android app along with preference-headers to categorize the preference, it works fine but now i want to change the color of the header-text.
i have tried different kind of styling approach but nothing worked
here is my…

Umer Waqas - Top rated dev
- 3,072
- 29
- 26
1
vote
0 answers
Preference header and Switch preference
i am new to android and i am working on preference headers. i have few queries on preferences. here are they
Can preference headers and preference switch can be on same page. eg, first two options will be wifi and bluetooth as preference headers.…

Abhishek
- 71
- 8
1
vote
1 answer
Got InflateException After Clicking On a Preference Header Inside PreferenceActivity
I am using preference headers for the preferences part of my application. They were working great but somehow something happened (that I couldn't realize) and I started to get InflateException. The related codes and logs are present below, can…

Bahadir Tasdemir
- 10,325
- 4
- 49
- 61
0
votes
1 answer
Is there any possibility to call preference-headers in a fragment?
I'm having an android application which has only one activity. Any UI changes etc are made on fragments. But I want to implement a preference settings screen as tablet style view.
The problem is that i have to implement that feature in fragment. As…

Ace
- 47
- 6
0
votes
1 answer
Preference Headers embedded with a Switch button without linking to a fragment
I am trying to customize preference headers. few headers should be linked to a fragment and open a new preference screen upon tapping it. few headers should be embedded with a switch and not be linked to any fragment. touch on these headers shouldnt…

Abhishek
- 71
- 8