forked from GitHub-Mirror/riotX-android
WIP
This commit is contained in:
45
vector/src/main/res/xml/vector_settings_notifications.xml
Normal file
45
vector/src/main/res/xml/vector_settings_notifications.xml
Normal file
@ -0,0 +1,45 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<SwitchPreference
|
||||
android:key="SETTINGS_ENABLE_ALL_NOTIF_PREFERENCE_KEY"
|
||||
android:title="@string/settings_enable_all_notif" />
|
||||
|
||||
<SwitchPreference
|
||||
android:dependency="SETTINGS_ENABLE_ALL_NOTIF_PREFERENCE_KEY"
|
||||
android:key="SETTINGS_ENABLE_THIS_DEVICE_PREFERENCE_KEY"
|
||||
android:title="@string/settings_enable_this_device" />
|
||||
|
||||
<!--<im.vector.riotredesign.core.preference.VectorSwitchPreference-->
|
||||
<!--android:dependency="SETTINGS_ENABLE_ALL_NOTIF_PREFERENCE_KEY"-->
|
||||
<!--android:key="SETTINGS_TURN_SCREEN_ON_PREFERENCE_KEY"-->
|
||||
<!--android:title="@string/settings_turn_screen_on" />-->
|
||||
|
||||
<!--<Preference-->
|
||||
<!--android:dialogTitle="@string/settings_notification_privacy"-->
|
||||
<!--android:key="SETTINGS_NOTIFICATION_PRIVACY_PREFERENCE_KEY"-->
|
||||
<!--android:title="@string/settings_notification_privacy" />-->
|
||||
|
||||
<Preference
|
||||
android:dependency="SETTINGS_ENABLE_THIS_DEVICE_PREFERENCE_KEY"
|
||||
android:key="SETTINGS_NOTIFICATION_ADVANCED_PREFERENCE_KEY"
|
||||
android:persistent="false"
|
||||
android:summary="@string/settings_notification_advanced_summary"
|
||||
android:title="@string/settings_notification_advanced"
|
||||
app:fragment="im.vector.fragments.VectorSettingsNotificationsAdvancedFragment" />
|
||||
|
||||
<Preference
|
||||
android:key="SETTINGS_NOTIFICATION_TROUBLESHOOT_PREFERENCE_KEY"
|
||||
android:title="@string/settings_notification_troubleshoot"
|
||||
app:fragment="im.vector.riotredesign.features.settings.VectorSettingsNotificationsTroubleshootFragment" />
|
||||
|
||||
<PreferenceCategory android:title="@string/settings_expert">
|
||||
|
||||
<Preference
|
||||
android:layout_width="match_parent"
|
||||
android:title="@string/settings_push_gateways"
|
||||
app:fragment="im.vector.riotredesign.features.settings.push.PushGatewaysFragment" />
|
||||
|
||||
</PreferenceCategory>
|
||||
</PreferenceScreen>
|
54
vector/src/main/res/xml/vector_settings_preferences_root.xml
Normal file
54
vector/src/main/res/xml/vector_settings_preferences_root.xml
Normal file
@ -0,0 +1,54 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<Preference
|
||||
android:layout_width="match_parent"
|
||||
android:icon="@drawable/ic_settings_general"
|
||||
android:title="@string/settings_general_title"
|
||||
app:fragment="com.example.SyncFragment" />
|
||||
|
||||
|
||||
<Preference
|
||||
android:layout_width="match_parent"
|
||||
android:icon="@drawable/ic_flair"
|
||||
android:title="@string/settings_flair"
|
||||
app:fragment="com.example.SyncFragment" />
|
||||
|
||||
<Preference
|
||||
android:layout_width="match_parent"
|
||||
android:icon="@drawable/ic_bell"
|
||||
android:key="SETTINGS_NOTIFICATIONS_KEY"
|
||||
android:title="@string/settings_notifications"
|
||||
app:fragment="im.vector.riotredesign.features.settings.VectorSettingsNotificationPreferenceFragment" />
|
||||
|
||||
|
||||
<Preference
|
||||
android:layout_width="match_parent"
|
||||
android:icon="@drawable/ic_sliders"
|
||||
android:title="@string/settings_preferences"
|
||||
app:fragment="com.example.SyncFragment" />
|
||||
|
||||
|
||||
<Preference
|
||||
android:layout_width="match_parent"
|
||||
android:icon="@drawable/ic_lock"
|
||||
android:title="@string/settings_security_and_privacy"
|
||||
app:fragment="com.example.SyncFragment" />
|
||||
|
||||
|
||||
<Preference
|
||||
android:layout_width="match_parent"
|
||||
android:icon="@drawable/ic_settings_lab"
|
||||
android:title="@string/room_settings_labs_pref_title"
|
||||
app:fragment="com.example.SyncFragment" />
|
||||
|
||||
|
||||
<Preference
|
||||
android:layout_width="match_parent"
|
||||
android:icon="@drawable/ic_devices_info"
|
||||
android:title="Legacy"
|
||||
app:fragment="com.example.SyncFragment" />
|
||||
|
||||
|
||||
</PreferenceScreen>
|
Reference in New Issue
Block a user