aboutsummaryrefslogtreecommitdiffstats
path: root/mapswithme-api/res
diff options
context:
space:
mode:
authorMichael Keppler <michael.keppler@gmx.de>2014-04-21 18:33:07 +0200
committerMichael Keppler <michael.keppler@gmx.de>2014-04-21 18:33:07 +0200
commit7955c23b643ba127d002b07fac57790ca430ad88 (patch)
tree4f61c7f0c81bf8d85cb44034f097ff9b7c63e44b /mapswithme-api/res
parentbcced1c4bfafcd0984f7c94abf53bc966359799e (diff)
downloadcgeo-7955c23b643ba127d002b07fac57790ca430ad88.zip
cgeo-7955c23b643ba127d002b07fac57790ca430ad88.tar.gz
cgeo-7955c23b643ba127d002b07fac57790ca430ad88.tar.bz2
new: integrate mapswithme
Diffstat (limited to 'mapswithme-api/res')
-rw-r--r--mapswithme-api/res/drawable/background_pattern.xml5
-rw-r--r--mapswithme-api/res/drawable/btn_back_gray.xml13
-rw-r--r--mapswithme-api/res/drawable/btn_back_gray_active.xml16
-rw-r--r--mapswithme-api/res/drawable/btn_back_green.xml14
-rw-r--r--mapswithme-api/res/drawable/btn_back_green_active.xml16
-rw-r--r--mapswithme-api/res/drawable/btn_gray_selector.xml7
-rw-r--r--mapswithme-api/res/drawable/btn_green_selector.xml7
-rw-r--r--mapswithme-api/res/drawable/gray.xml13
-rw-r--r--mapswithme-api/res/drawable/green.xml15
-rw-r--r--mapswithme-api/res/drawable/overflow.xml6
-rw-r--r--mapswithme-api/res/drawable/pattern.pngbin0 -> 67027 bytes
-rw-r--r--mapswithme-api/res/drawable/shadow.xml13
-rw-r--r--mapswithme-api/res/layout/dlg_install_mwm.xml69
-rw-r--r--mapswithme-api/res/values/strings.xml9
-rw-r--r--mapswithme-api/res/values/styles.xml10
15 files changed, 213 insertions, 0 deletions
diff --git a/mapswithme-api/res/drawable/background_pattern.xml b/mapswithme-api/res/drawable/background_pattern.xml
new file mode 100644
index 0000000..2293a51
--- /dev/null
+++ b/mapswithme-api/res/drawable/background_pattern.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
+ android:dither="true"
+ android:src="@drawable/pattern"
+ android:tileMode="repeat" />
diff --git a/mapswithme-api/res/drawable/btn_back_gray.xml b/mapswithme-api/res/drawable/btn_back_gray.xml
new file mode 100644
index 0000000..445902c
--- /dev/null
+++ b/mapswithme-api/res/drawable/btn_back_gray.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
+
+ <!-- "background shadow" -->
+ <item android:drawable="@drawable/shadow"/>
+ <item
+ android:bottom="1dp"
+ android:left="1dp"
+ android:right="1dp"
+ android:top="1dp"
+ android:drawable="@drawable/gray"/>
+
+</layer-list> \ No newline at end of file
diff --git a/mapswithme-api/res/drawable/btn_back_gray_active.xml b/mapswithme-api/res/drawable/btn_back_gray_active.xml
new file mode 100644
index 0000000..a4d6310
--- /dev/null
+++ b/mapswithme-api/res/drawable/btn_back_gray_active.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <!-- "background shadow" -->
+ <item android:drawable="@drawable/shadow"/>
+
+ <item
+ android:bottom="2dp"
+ android:left="1dp"
+ android:right="1dp"
+ android:top="1dp"
+ android:drawable="@drawable/gray"/>
+
+ <item android:drawable="@drawable/overflow"/>
+
+</layer-list> \ No newline at end of file
diff --git a/mapswithme-api/res/drawable/btn_back_green.xml b/mapswithme-api/res/drawable/btn_back_green.xml
new file mode 100644
index 0000000..b647551
--- /dev/null
+++ b/mapswithme-api/res/drawable/btn_back_green.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="utf-8"?>
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
+
+ <!-- "background shadow" -->
+ <item android:drawable="@drawable/shadow"/>
+
+ <item
+ android:bottom="1dp"
+ android:left="1dp"
+ android:right="1dp"
+ android:top="1dp"
+ android:drawable="@drawable/green"/>
+
+</layer-list> \ No newline at end of file
diff --git a/mapswithme-api/res/drawable/btn_back_green_active.xml b/mapswithme-api/res/drawable/btn_back_green_active.xml
new file mode 100644
index 0000000..49e849f
--- /dev/null
+++ b/mapswithme-api/res/drawable/btn_back_green_active.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
+
+ <!-- "background shadow" -->
+ <item android:drawable="@drawable/shadow"/>
+
+ <item
+ android:bottom="2dp"
+ android:left="1dp"
+ android:right="1dp"
+ android:top="1dp"
+ android:drawable="@drawable/green"/>
+
+ <item android:drawable="@drawable/overflow"/>
+
+</layer-list> \ No newline at end of file
diff --git a/mapswithme-api/res/drawable/btn_gray_selector.xml b/mapswithme-api/res/drawable/btn_gray_selector.xml
new file mode 100644
index 0000000..3876bb0
--- /dev/null
+++ b/mapswithme-api/res/drawable/btn_gray_selector.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <item android:drawable="@drawable/btn_back_gray_active" android:state_pressed="true"/>
+ <item android:drawable="@drawable/btn_back_gray"/>
+
+</selector> \ No newline at end of file
diff --git a/mapswithme-api/res/drawable/btn_green_selector.xml b/mapswithme-api/res/drawable/btn_green_selector.xml
new file mode 100644
index 0000000..61b78df
--- /dev/null
+++ b/mapswithme-api/res/drawable/btn_green_selector.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<selector xmlns:android="http://schemas.android.com/apk/res/android">
+
+ <item android:drawable="@drawable/btn_back_green_active" android:state_pressed="true"/>
+ <item android:drawable="@drawable/btn_back_green"/>
+
+</selector> \ No newline at end of file
diff --git a/mapswithme-api/res/drawable/gray.xml b/mapswithme-api/res/drawable/gray.xml
new file mode 100644
index 0000000..f3fda93
--- /dev/null
+++ b/mapswithme-api/res/drawable/gray.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android"
+ android:shape="rectangle" >
+
+
+ <gradient android:type="linear"
+ android:angle="90"
+ android:startColor="#D00099CC"
+ android:centerColor="#D033B5E5"
+ android:endColor="#D00099CC"/>
+
+ <corners android:radius="4dp" />
+</shape> \ No newline at end of file
diff --git a/mapswithme-api/res/drawable/green.xml b/mapswithme-api/res/drawable/green.xml
new file mode 100644
index 0000000..c7afb64
--- /dev/null
+++ b/mapswithme-api/res/drawable/green.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android"
+ android:shape="rectangle" >
+ <!--
+ <solid android:color="#66CC33" /> -->
+
+ <gradient android:type="linear"
+ android:angle="90"
+ android:startColor="#D066CC33"
+ android:centerColor="#D099CC00"
+ android:endColor="#D066CC33"/>
+
+
+ <corners android:radius="4dp" />
+</shape> \ No newline at end of file
diff --git a/mapswithme-api/res/drawable/overflow.xml b/mapswithme-api/res/drawable/overflow.xml
new file mode 100644
index 0000000..f507765
--- /dev/null
+++ b/mapswithme-api/res/drawable/overflow.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android"
+ android:shape="rectangle" >
+ <solid android:color="#80FFFFFF" />
+ <corners android:radius="3dp" />
+</shape> \ No newline at end of file
diff --git a/mapswithme-api/res/drawable/pattern.png b/mapswithme-api/res/drawable/pattern.png
new file mode 100644
index 0000000..33b8d96
--- /dev/null
+++ b/mapswithme-api/res/drawable/pattern.png
Binary files differ
diff --git a/mapswithme-api/res/drawable/shadow.xml b/mapswithme-api/res/drawable/shadow.xml
new file mode 100644
index 0000000..4c241c4
--- /dev/null
+++ b/mapswithme-api/res/drawable/shadow.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<shape xmlns:android="http://schemas.android.com/apk/res/android"
+ android:shape="rectangle" >
+ <gradient
+ android:angle="-90"
+ android:centerX="50%"
+ android:centerY="50%"
+ android:gradientRadius="400"
+ android:startColor="#44000000"
+ android:endColor="#88000000"
+ android:type="linear" />
+ <corners android:radius="4dp" />
+</shape> \ No newline at end of file
diff --git a/mapswithme-api/res/layout/dlg_install_mwm.xml b/mapswithme-api/res/layout/dlg_install_mwm.xml
new file mode 100644
index 0000000..0d174a8
--- /dev/null
+++ b/mapswithme-api/res/layout/dlg_install_mwm.xml
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (c) 2013, MapsWithMe GmbH All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification,
+ are permitted provided that the following conditions are met:
+
+ Redistributions of source code must retain the above copyright notice, this list
+ of conditions and the following disclaimer. Redistributions in binary form must
+ reproduce the above copyright notice, this list of conditions and the following
+ disclaimer in the documentation and/or other materials provided with the
+ distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
+ CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
+ OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
+ IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ OF SUCH DAMAGE.
+-->
+<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" >
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="@drawable/background_pattern"
+ android:gravity="center"
+ android:orientation="vertical"
+ android:paddingLeft="10dp"
+ android:paddingRight="10dp" >
+
+ <TextView
+ style="@android:style/TextAppearance.Medium"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="10dp"
+ android:layout_weight="0"
+ android:gravity="center"
+ android:text="@string/mwm_should_be_installed"
+ android:textColor="@android:color/black" />
+
+ <Button
+ android:id="@+id/btn_pro"
+ style="@style/promoButton"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_weight="1"
+ android:background="@drawable/btn_green_selector"
+ android:text="@string/down_pro" />
+
+ <Button
+ android:id="@+id/btn_lite"
+ style="@style/promoButton"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_weight="1"
+ android:background="@drawable/btn_gray_selector"
+ android:padding="6dp"
+ android:text="@string/down_lite" />
+
+ </LinearLayout>
+
+</ScrollView> \ No newline at end of file
diff --git a/mapswithme-api/res/values/strings.xml b/mapswithme-api/res/values/strings.xml
new file mode 100644
index 0000000..1955847
--- /dev/null
+++ b/mapswithme-api/res/values/strings.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <string name="mwm_should_be_installed">Offline maps are required to proceed. We have partnered with MapsWithMe to provide you with offline maps of the entire world.\nTo continue please download the app:</string>
+ <string name="down_lite">Download MapsWithMe Lite (free)</string>
+ <string name="down_pro">Download MapsWithMe Pro</string>
+
+ <string name="url_pro">http://mapswith.me/get</string>
+ <string name="url_lite">http://mapswith.me/app</string>
+</resources> \ No newline at end of file
diff --git a/mapswithme-api/res/values/styles.xml b/mapswithme-api/res/values/styles.xml
new file mode 100644
index 0000000..e9c52fa
--- /dev/null
+++ b/mapswithme-api/res/values/styles.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources xmlns:android="http://schemas.android.com/apk/res/android">
+ <style name="promoButton" parent="android:Widget.Button">
+ <item name="android:layout_marginBottom">10dp</item>
+ <item name="android:layout_marginTop">10dp</item>
+ <item name="android:padding">6dp</item>
+ <item name="android:textColor">@android:color/white</item>
+ <item name="android:textStyle">bold</item>
+ </style>
+</resources>