Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
created preference categories
Browse files Browse the repository at this point in the history
  • Loading branch information
smukov committed Sep 3, 2016
1 parent 2112afe commit 3ffc07f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 18 deletions.
9 changes: 6 additions & 3 deletions Android/app/src/main/res/values/strings.xml
Expand Up @@ -47,13 +47,16 @@
<string name="typeMessage">Type to compose</string>
<string name="dismiss">Dismiss</string>
<string name="accept">Accept</string>
<string name="pref_discoverable">Make me discoverable by others</string>
<string name="pref_notify_messages">Notifications for Messages</string>
<string name="pref_notify_invites">Notifications for Invites</string>


<!-- Discover Users Activity -->
<string name="title_activity_discover_users_slider">Discover Users</string>

<!-- Preferences Activity -->
<string name="pref_general_settings">General</string>
<string name="pref_account_settings">Account</string>
<string name="pref_discoverable">Make me discoverable by others</string>
<string name="pref_notify_messages">Notifications for Messages</string>
<string name="pref_notify_invites">Notifications for Invites</string>
<string name="pref_log_out_button">pref_log_out_button</string>
</resources>
38 changes: 23 additions & 15 deletions Android/app/src/main/res/xml/preferences.xml
@@ -1,18 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<SwitchPreference
android:key="pref_discoverable"
android:title="@string/pref_discoverable"
android:defaultValue="true" />
<SwitchPreference
android:key="pref_notification_messages"
android:title="@string/pref_notify_messages"
android:defaultValue="true" />
<SwitchPreference
android:key="pref_notification_invites"
android:title="@string/pref_notify_invites"
android:defaultValue="true" />
<Preference android:title="Log Out"
android:key="@string/pref_log_out_button"
android:summary=""/>
<PreferenceCategory
android:title="@string/pref_general_settings"
android:key="pref_key_storage_settings">
<SwitchPreference
android:key="pref_discoverable"
android:title="@string/pref_discoverable"
android:defaultValue="true" />
<SwitchPreference
android:key="pref_notification_messages"
android:title="@string/pref_notify_messages"
android:defaultValue="true" />
<SwitchPreference
android:key="pref_notification_invites"
android:title="@string/pref_notify_invites"
android:defaultValue="true" />
</PreferenceCategory>
<PreferenceCategory
android:title="@string/pref_account_settings"
android:key="pref_key_storage_settings">
<Preference android:title="Log Out"
android:key="@string/pref_log_out_button"
android:summary=""/>
</PreferenceCategory>
</PreferenceScreen>

0 comments on commit 3ffc07f

Please sign in to comment.