![](/img/trans.png)
[英]How do I link preferences.xml to my settingsTabFragment in my tablayout?
[英]I want to know how i can read the status of my preferences.xml checkbox using appcelerator titanium
我正在使用Titanium Appcelerator構建適用於Android的應用程序。 而且我已經成功創建了帶有以下preferences.xml的首選項屏幕。 我試圖弄清楚如何查看復選框是否被選中。
<?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>
我相信可以將其視為您執行Ti.App.Properties.getString('Utrecht')
或Ti.App.Properties.getBool('Utrecht')
的屬性
另請參見http://developer.appcelerator.com/question/99541/where-is-android-app-property-list-in-emulator
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.