In the settings section, there is a list preference (as shown below in the code) for colours but I can't seem to find the reason why the values don't show up. I have checked the internet but I can't seem to understand the difference between android:entries and android:entryValues. Could this be a problem in my code? Any help is appreciated. Thanks in advance.
Array Below
<string-array name="preferencebackground">
<item name="Red"/>
<item name="Green"/>
<item name="Blue"/>
<item name="Orange"/>
</string-array>
<string name="preferencebackground">Background Colour Preferences</string>
<string-array name="preferencebackgroundvalues">
<item name="Red"/>
<item name="Green"/>
<item name="Blue"/>
<item name="Orange"/>
</string-array>
Pref_general.xml
<ListPreference
android:defaultValue="-1"
android:entries="@array/preferencebackground"
android:entryValues="@array/preferencebackgroundvalues"
android:key="example_list1"
android:negativeButtonText="@null"
android:positiveButtonText="@null"
android:title="@string/preferencebackground" />