J'utilise Titanium Appcelerator pour construire une application pour Android. Et j'ai réussi à créer un écran de préférences avec le fichier preferences.xml ci-dessous. J'essaie de comprendre comment je peux voir si la case à cocher est sélectionnée ou non.Je veux savoir comment je peux lire l'état de mes preferences.xml checkbox en utilisant appcelerator titanium
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
android:title="Instellingen kortingen">
<PreferenceCategory android:title="Plaats">
<CheckBoxPreference
android:title="Almere"
android:defaultValue="false"
android:key="checkbox" />
<CheckBoxPreference
android:title="Amsterdam"
android:defaultValue="false"
android:key="checkbox" />
<CheckBoxPreference
android:title="Lelystad"
android:defaultValue="false"
android:key="checkbox" />
<CheckBoxPreference
android:title="Utrecht"
android:defaultValue="false"
android:key="checkbox" />
</PreferenceCategory>
peut-je utiliser 'Ti.App.Properties.getBool ('Utrecht) 'directement à partir de app.js pour obtenir l'état booléen de mes préférences.xml? – jan