Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
InstiApp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
RAHUL SHARMA
InstiApp
Commits
4879d4b3
Commit
4879d4b3
authored
Feb 02, 2019
by
Varun Patil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revamp SettingsFragment to use PreferencesFragmentCompat
parent
e2cedc42
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
150 additions
and
141 deletions
+150
-141
app/build.gradle
app/build.gradle
+1
-0
app/src/main/java/app/insti/fragment/SettingsFragment.java
app/src/main/java/app/insti/fragment/SettingsFragment.java
+108
-141
app/src/main/res/drawable/ic_local_phone_gray_36dp.xml
app/src/main/res/drawable/ic_local_phone_gray_36dp.xml
+5
-0
app/src/main/res/xml/preferences.xml
app/src/main/res/xml/preferences.xml
+36
-0
No files found.
app/build.gradle
View file @
4879d4b3
...
...
@@ -45,6 +45,7 @@ dependencies {
implementation
"com.android.support:design:${supportLibVersion}"
implementation
"com.android.support:exifinterface:${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-location:${playServicesVersion}"
implementation
"com.google.android.gms:play-services-places:${playServicesVersion}"
...
...
app/src/main/java/app/insti/fragment/SettingsFragment.java
View file @
4879d4b3
This diff is collapsed.
Click to expand it.
app/src/main/res/drawable/ic_local_phone_gray_36dp.xml
0 → 100644
View file @
4879d4b3
<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>
app/src/main/res/xml/preferences.xml
0 → 100644
View file @
4879d4b3
<?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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment