aboutsummaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-09-03 10:28:53 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-09-03 10:28:53 +1200
commit5705bc2c909fb93ba18ac42ade6a450b72e32598 (patch)
treea223ce5f854e05b1806f2afd1f84c2406641ba78 /app/src/main
parent56eb501b5e33dcd15f6d0f4c3af229ec75b433fd (diff)
downloadetbsa-traccar-manager-android-5705bc2c909fb93ba18ac42ade6a450b72e32598.tar.gz
etbsa-traccar-manager-android-5705bc2c909fb93ba18ac42ade6a450b72e32598.tar.bz2
etbsa-traccar-manager-android-5705bc2c909fb93ba18ac42ade6a450b72e32598.zip
Add Firebase and support lib
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/AndroidManifest.xml3
-rw-r--r--app/src/main/java/org/traccar/manager/MainActivity.java4
-rw-r--r--app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml2
-rw-r--r--app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml2
-rw-r--r--app/src/main/res/values-v21/styles.xml4
-rw-r--r--app/src/main/res/values/colors.xml9
-rw-r--r--app/src/main/res/values/ic_launcher_background.xml4
-rw-r--r--app/src/main/res/values/styles.xml4
-rw-r--r--app/src/main/res/values/themes.xml10
9 files changed, 25 insertions, 17 deletions
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index 551a573..79cd006 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+<manifest
+ xmlns:android="http://schemas.android.com/apk/res/android"
package="org.traccar.manager">
<uses-permission android:name="android.permission.INTERNET" />
diff --git a/app/src/main/java/org/traccar/manager/MainActivity.java b/app/src/main/java/org/traccar/manager/MainActivity.java
index fd4c23b..719ff7c 100644
--- a/app/src/main/java/org/traccar/manager/MainActivity.java
+++ b/app/src/main/java/org/traccar/manager/MainActivity.java
@@ -15,11 +15,11 @@
*/
package org.traccar.manager;
-import android.app.Activity;
import android.os.Bundle;
import android.preference.PreferenceManager;
+import android.support.v7.app.AppCompatActivity;
-public class MainActivity extends Activity {
+public class MainActivity extends AppCompatActivity {
public static final String PREFERENCE_URL = "url";
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
index 036d09b..7335274 100644
--- a/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
- <background android:drawable="@color/ic_launcher_background"/>
+ <background android:drawable="@color/primary"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon> \ No newline at end of file
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
index 036d09b..7335274 100644
--- a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
+++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
- <background android:drawable="@color/ic_launcher_background"/>
+ <background android:drawable="@color/primary"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon> \ No newline at end of file
diff --git a/app/src/main/res/values-v21/styles.xml b/app/src/main/res/values-v21/styles.xml
deleted file mode 100644
index 52f0d10..0000000
--- a/app/src/main/res/values-v21/styles.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-<resources>
- <style name="AppTheme" parent="android:Theme.Material.Light.NoActionBar">
- </style>
-</resources>
diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml
new file mode 100644
index 0000000..4cfa782
--- /dev/null
+++ b/app/src/main/res/values/colors.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <color name="primary">#1E88E5</color>
+ <color name="primary_dark">#1565C0</color>
+ <color name="accent">#1976D2</color>
+ <color name="white">#FFFFFF</color>
+
+</resources>
diff --git a/app/src/main/res/values/ic_launcher_background.xml b/app/src/main/res/values/ic_launcher_background.xml
deleted file mode 100644
index 1de78b8..0000000
--- a/app/src/main/res/values/ic_launcher_background.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
- <color name="ic_launcher_background">#1E88E5</color>
-</resources> \ No newline at end of file
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
deleted file mode 100644
index 31ea1fb..0000000
--- a/app/src/main/res/values/styles.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-<resources>
- <style name="AppTheme" parent="android:Theme.Holo.Light.NoActionBar">
- </style>
-</resources>
diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml
new file mode 100644
index 0000000..c1b3366
--- /dev/null
+++ b/app/src/main/res/values/themes.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
+ <item name="colorPrimary">@color/primary</item>
+ <item name="colorPrimaryDark">@color/primary_dark</item>
+ <item name="colorAccent">@color/accent</item>
+ </style>
+
+</resources>