Reputation: 69
I have a SwitchPreference:
<SwitchPreference
android:key="@string/ground_guidance_halt_display_key"
android:title="@string/ground_guidance_halt_display_title" />
android:defaultValue="true"
No matter what I try, in the preference menu, it's always defaulted to OFF. Any ideas? I've also tried setting the default value to "On" instead to no avail. My other preference types' default values work correctly. I'm new enough to Android that I really don't know what else to post to help find an answer - sorry!
Upvotes: 1
Views: 1705
Reputation: 69
My XML formatting was off - unsure why no errors were thrown on runtime, but fixing it solved my problem.
Upvotes: 1