Skip to content

Instantly share code, notes, and snippets.

@sakurabird
Created October 24, 2011 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sakurabird/1309044 to your computer and use it in GitHub Desktop.
Save sakurabird/1309044 to your computer and use it in GitHub Desktop.
Untouchable プリファレンスアクティビティ xmlの定義
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory android:title="@string/pref_cattitle_sound">
<ListPreference
android:title="@string/pref_title_sound"
android:summary="@string/pref_summary_sound"
android:key="@string/pref_key_sound"
android:entries="@array/entries"
android:entryValues="@array/entryValues"
android:dialogTitle="@string/pref_title_sound"
android:defaultValue="2" />
<CheckBoxPreference
android:title="@string/pref_title_vibrator"
android:summary="@string/pref_summary_vibrator"
android:key="@string/pref_key_vibrator"
android:defaultValue="true">
</CheckBoxPreference>
</PreferenceCategory>
<PreferenceCategory android:title="@string/pref_title_sensor_sensitibity">
<EditTextPreference
android:title="@string/pref_title_sensor_sensitibity"
android:summary="@string/pref_summary_sensor_sensitibity"
android:key="@string/pref_key_sensor_sensitivity"
android:dialogTitle="@string/pref_dialogtitle_sensor_sensitibity"
android:inputType="numberDecimal"
android:defaultValue="3.0"
>
</EditTextPreference>
</PreferenceCategory>
</PreferenceScreen>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment