Commit 4879d4b3 authored by Varun Patil's avatar Varun Patil

Revamp SettingsFragment to use PreferencesFragmentCompat

parent e2cedc42
...@@ -45,6 +45,7 @@ dependencies { ...@@ -45,6 +45,7 @@ dependencies {
implementation "com.android.support:design:${supportLibVersion}" implementation "com.android.support:design:${supportLibVersion}"
implementation "com.android.support:exifinterface:${supportLibVersion}" implementation "com.android.support:exifinterface:${supportLibVersion}"
implementation "com.android.support:support-v4:${supportLibVersion}" implementation "com.android.support:support-v4:${supportLibVersion}"
implementation "com.android.support:preference-v7:${supportLibVersion}"
implementation "com.google.android.gms:play-services-maps:${playServicesVersion}" implementation "com.google.android.gms:play-services-maps:${playServicesVersion}"
implementation "com.google.android.gms:play-services-location:${playServicesVersion}" implementation "com.google.android.gms:play-services-location:${playServicesVersion}"
implementation "com.google.android.gms:play-services-places:${playServicesVersion}" implementation "com.google.android.gms:play-services-places:${playServicesVersion}"
......
<vector android:height="36dp" android:tint="#767676"
android:viewportHeight="24.0" android:viewportWidth="24.0"
android:width="36dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#FF000000" android:pathData="M6.62,10.79c1.44,2.83 3.76,5.14 6.59,6.59l2.2,-2.2c0.27,-0.27 0.67,-0.36 1.02,-0.24 1.12,0.37 2.33,0.57 3.57,0.57 0.55,0 1,0.45 1,1V20c0,0.55 -0.45,1 -1,1 -9.39,0 -17,-7.61 -17,-17 0,-0.55 0.45,-1 1,-1h3.5c0.55,0 1,0.45 1,1 0,1.25 0.2,2.45 0.57,3.57 0.11,0.35 0.03,0.74 -0.25,1.02l-2.2,2.2z"/>
</vector>
<?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">
<SwitchPreferenceCompat
app:key="show_contact"
app:title="Show contact number"
app:summary="Toggle visibility on your profile"
android:icon="@drawable/ic_local_phone_gray_36dp"/>
<Preference
app:key="profile"
app:title="Update Profile"
app:summary="Update personal details on SSO"
android:icon="@drawable/baseline_account_circle_gray_36"/>
<Preference
app:key="feedback"
app:title="Send feedback"
app:summary="Report technical issues or suggest new features"
android:icon="@drawable/baseline_feedback_gray_36"/>
<Preference
app:key="about"
app:title="About"
app:summary="The InstiApp Team"
android:icon="@drawable/baseline_info_gray_36"/>
<Preference
app:key="logout"
app:title="Logout"
app:summary="Sign out of InstiApp"
android:icon="@drawable/baseline_exit_to_app_gray_36"/>
</PreferenceScreen>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment