Following the Android PreferenceFragmetCompat docs (developer.android.com/reference/android/support/v7/preference/PreferenceFragmentCompat) I added a folder to my
Resources folder in my Xamarin.Android project. Then I added a new
.xml file to that folder, called
Here are the contents of that file:
<PreferenceScreen xmlns:android="(correct schema, new to the forum)"> <CheckBoxPreference android:key="pref_autosync" android:title="@string/pref_autosync" android:summary="@string/pref_autosync_summary" /> </PreferenceScreen>
Both strings are properly defined in the
I went on to add a
PreferenceFragmentCompat to my project, in which, in the overriden method
OnCreatePreferences I added the following line:
The error states
'Resource' does not contain a definiton for 'Xml'..
I am aware that this SO thread (stackoverflow.com/questions/33219973/resource-contains-no-definition-for-animation/33228113#33228113) exists, and I tried all the solutions mentioned there. Nothing seems to help.
Thank you in advance for any help.
Also posted to StackOverflow here: stackoverflow.com/questions/51553463/resource-does-not-contain-a-definition-for-xml