-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change: Setting activity to normal android prefereces
- Loading branch information
1 parent
b42585b
commit f56d5b0
Showing
20 changed files
with
92 additions
and
212 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<integer-array name="distanceArray"> | ||
<string-array name="distanceArray"> | ||
<item>10</item> | ||
<item>50</item> | ||
<item>100</item> | ||
<item>180</item> | ||
</integer-array> | ||
</resources> | ||
</string-array> | ||
<string name="distanceArrayDefault">100</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<integer-array name="timeArray"> | ||
<string-array name="timeArray"> | ||
<item>500</item> | ||
<item>1000</item> | ||
<item>1500</item> | ||
</integer-array> | ||
</resources> | ||
</string-array> | ||
<string name="timeArrayDefault">1000</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ | |
<item>Normal</item> | ||
<item>Far</item> | ||
</string-array> | ||
</resources> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
<item>Normal</item> | ||
<item>Slow</item> | ||
</string-array> | ||
</resources> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<PreferenceCategory | ||
android:title="@string/notificationsGroupLabel"> | ||
<CheckBoxPreference | ||
android:title="@string/NotificationLabel" | ||
android:defaultValue="true" | ||
android:key="showNotificationWorkout"/> | ||
<CheckBoxPreference | ||
android:title="@string/vibraNotifylabel" | ||
android:defaultValue="false" | ||
android:key="vibrateNotification"/> | ||
</PreferenceCategory> | ||
<PreferenceCategory | ||
android:title="@string/otherSettingsLabel"> | ||
<CheckBoxPreference | ||
android:title="@string/settingShowWorkoutInfoLabel" | ||
android:defaultValue="false" | ||
android:key="showWorkoutInfo"/> | ||
<CheckBoxPreference | ||
android:title="@string/exitAlertLabel" | ||
android:defaultValue="true" | ||
android:key="exitAlert"/> | ||
<ListPreference | ||
android:key="distance" | ||
android:title="@string/settingDistanceBetweenPointLabel" | ||
android:entries="@array/viewDistanceSetting" | ||
android:entryValues="@array/distanceArray" | ||
android:defaultValue="@string/distanceArrayDefault" | ||
/> | ||
|
||
<ListPreference | ||
android:key="time" | ||
android:title="@string/settingGPSSpeedScan" | ||
android:entries="@array/viewTimeSetting" | ||
android:entryValues="@array/timeArray" | ||
android:defaultValue="@string/timeArrayDefault" | ||
/> | ||
|
||
</PreferenceCategory> | ||
</PreferenceScreen> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.sylwke3100.freetrackgps; | ||
|
||
import android.os.Bundle; | ||
import android.preference.PreferenceFragment; | ||
|
||
|
||
public class PreferencesFragment extends PreferenceFragment { | ||
@Override | ||
public void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
addPreferencesFromResource(R.xml.activity_preferences); | ||
} | ||
|
||
} |
Oops, something went wrong.