Skip to content

Commit

Permalink
Adding preferences.xml file.
Browse files Browse the repository at this point in the history
  • Loading branch information
roundhill committed Feb 28, 2013
1 parent 890268d commit c481244
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,7 @@ res/values/ids.xml -text
res/values/integers.xml -text
res/values/strings.xml -text
res/values/styles.xml -text
res/xml/preferences.xml -text
src/com/commonsware/cwac/cache/AsyncCache.java -text
src/com/commonsware/cwac/cache/CacheBase.java -text
src/com/commonsware/cwac/cache/SimpleWebImageCache.java -text
Expand Down
45 changes: 45 additions & 0 deletions res/xml/preferences.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >

<PreferenceCategory
android:key="wp_pref_notification_settings"
android:title="@string/comment_notifications" >
<PreferenceScreen
android:key="wp_pref_notification_blogs"
android:persistent="false"
android:title="@string/enable_blogs" >
</PreferenceScreen>

<ListPreference
android:key="wp_pref_notifications_interval"
android:title="@string/notifications_interval"
android:entries="@array/notificationIntervals"
android:entryValues="@array/notificationIntervals" />

<CheckBoxPreference
android:defaultValue="false"
android:key="wp_pref_notification_sound"
android:title="@string/notification_sound" />
<CheckBoxPreference
android:defaultValue="false"
android:key="wp_pref_notification_vibrate"
android:title="@string/notification_vibrate" />
<CheckBoxPreference
android:defaultValue="false"
android:key="wp_pref_notification_light"
android:title="@string/notification_blink" />
</PreferenceCategory>
<PreferenceCategory
android:key="wp_pref_notification_settings"
android:title="@string/post_signature" >
<CheckBoxPreference
android:defaultValue="false"
android:key="wp_pref_signature_enabled"
android:title="@string/add_tagline" />

<EditTextPreference
android:key="wp_pref_post_signature"
android:title="@string/post_signature" />
</PreferenceCategory>

</PreferenceScreen>

0 comments on commit c481244

Please sign in to comment.