diff --git a/OsmAnd/build.gradle b/OsmAnd/build.gradle
index f7d2ca58f0..f3d76c6c27 100644
--- a/OsmAnd/build.gradle
+++ b/OsmAnd/build.gradle
@@ -301,7 +301,7 @@ repositories {
dependencies {
compile project(path: ":OsmAnd-java", configuration: "android")
-// compile project(":eclipse-compile:appcompat")
+ compile project(":design")
compile fileTree(
dir: "libs",
include: ["*.jar"],
@@ -311,12 +311,12 @@ dependencies {
"OsmAndCore_android.jar",
"OsmAndCore_wrapper.jar"])
// compile "com.github.ksoichiro:android-observablescrollview:1.5.0"
- compile "com.android.support:appcompat-v7:22.2.1"
+// compile "com.android.support:appcompat-v7:22.2.1"
// compile "com.github.shell-software:fab:1.0.5"
legacyCompile "net.osmand:OsmAndCore_android:0.1-SNAPSHOT@jar"
qtcoredebugCompile "net.osmand:OsmAndCore_androidNativeDebug:0.1-SNAPSHOT@aar"
qtcoredebugCompile "net.osmand:OsmAndCore_android:0.1-SNAPSHOT@aar"
qtcoreCompile "net.osmand:OsmAndCore_androidNativeRelease:0.1-SNAPSHOT@aar"
qtcoreCompile "net.osmand:OsmAndCore_android:0.1-SNAPSHOT@aar"
- compile 'com.android.support:design:22.2.1'
+// compile 'com.android.support:design:22.2.1'
}
diff --git a/OsmAnd/project.properties b/OsmAnd/project.properties
index fd62b55da2..734c18df89 100644
--- a/OsmAnd/project.properties
+++ b/OsmAnd/project.properties
@@ -13,3 +13,4 @@ split.density=false
target=android-21
dex.force.jumbo=true
android.library.reference.1=../eclipse-compile/appcompat
+android.library.reference.2=../design
diff --git a/OsmAnd/res/drawable-xxhdpi/map_target_point.png.orig b/OsmAnd/res/drawable-xxhdpi/map_target_point.png.orig
deleted file mode 100644
index f48d52c6ef..0000000000
Binary files a/OsmAnd/res/drawable-xxhdpi/map_target_point.png.orig and /dev/null differ
diff --git a/build.gradle b/build.gradle
index c492d0fbec..73a4bc4761 100644
--- a/build.gradle
+++ b/build.gradle
@@ -4,12 +4,9 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:1.1.0'
- classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.12.+'
}
}
-apply plugin: 'android-sdk-manager'
-
allprojects {
repositories {
mavenCentral()
diff --git a/design/.gitignore b/design/.gitignore
new file mode 100644
index 0000000000..796b96d1c4
--- /dev/null
+++ b/design/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/design/build.gradle b/design/build.gradle
new file mode 100644
index 0000000000..de37907543
--- /dev/null
+++ b/design/build.gradle
@@ -0,0 +1,25 @@
+apply plugin: 'com.android.library'
+
+android {
+ compileSdkVersion 22
+ buildToolsVersion "22.0.1"
+
+ defaultConfig {
+ minSdkVersion 9
+ targetSdkVersion 22
+ versionCode 1
+ versionName "1.0"
+ }
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+dependencies {
+ compile fileTree(dir: 'libs', include: ['*.jar'])
+ compile project(":eclipse-compile:appcompat")
+// compile 'com.android.support:appcompat-v7:22.2.1'
+}
diff --git a/design/libs/android-support-design.jar b/design/libs/android-support-design.jar
new file mode 100644
index 0000000000..a02d808c94
Binary files /dev/null and b/design/libs/android-support-design.jar differ
diff --git a/design/proguard-rules.pro b/design/proguard-rules.pro
new file mode 100644
index 0000000000..674a70dd67
--- /dev/null
+++ b/design/proguard-rules.pro
@@ -0,0 +1,17 @@
+# Add project specific ProGuard rules here.
+# By default, the flags in this file are appended to flags specified
+# in /Users/GaidamakUA/Library/Android/sdk/tools/proguard/proguard-android.txt
+# You can edit the include path and order by changing the proguardFiles
+# directive in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# Add any project specific keep options here:
+
+# If your project uses WebView with JS, uncomment the following
+# and specify the fully qualified class name to the JavaScript interface
+# class:
+#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
+# public *;
+#}
diff --git a/design/src/androidTest/java/android/support/design/ApplicationTest.java b/design/src/androidTest/java/android/support/design/ApplicationTest.java
new file mode 100644
index 0000000000..a44d6e3d7f
--- /dev/null
+++ b/design/src/androidTest/java/android/support/design/ApplicationTest.java
@@ -0,0 +1,13 @@
+package android.support.design;
+
+import android.app.Application;
+import android.test.ApplicationTestCase;
+
+/**
+ * Testing Fundamentals
+ */
+public class ApplicationTest extends ApplicationTestCase {
+ public ApplicationTest() {
+ super(Application.class);
+ }
+}
\ No newline at end of file
diff --git a/design/src/main/AndroidManifest.xml b/design/src/main/AndroidManifest.xml
new file mode 100644
index 0000000000..012c7bf894
--- /dev/null
+++ b/design/src/main/AndroidManifest.xml
@@ -0,0 +1,5 @@
+
+
+
+
diff --git a/design/src/main/res/anim/fab_in.xml b/design/src/main/res/anim/fab_in.xml
new file mode 100644
index 0000000000..294050f549
--- /dev/null
+++ b/design/src/main/res/anim/fab_in.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/design/src/main/res/anim/fab_out.xml b/design/src/main/res/anim/fab_out.xml
new file mode 100644
index 0000000000..0f80a9ab0b
--- /dev/null
+++ b/design/src/main/res/anim/fab_out.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/design/src/main/res/anim/snackbar_in.xml b/design/src/main/res/anim/snackbar_in.xml
new file mode 100644
index 0000000000..a40524c2bd
--- /dev/null
+++ b/design/src/main/res/anim/snackbar_in.xml
@@ -0,0 +1,20 @@
+
+
+
+
diff --git a/design/src/main/res/anim/snackbar_out.xml b/design/src/main/res/anim/snackbar_out.xml
new file mode 100644
index 0000000000..eb55cc0e5e
--- /dev/null
+++ b/design/src/main/res/anim/snackbar_out.xml
@@ -0,0 +1,20 @@
+
+
+
+
\ No newline at end of file
diff --git a/design/src/main/res/drawable/fab_background.xml b/design/src/main/res/drawable/fab_background.xml
new file mode 100644
index 0000000000..43afd5c9ac
--- /dev/null
+++ b/design/src/main/res/drawable/fab_background.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/design/src/main/res/drawable/snackbar_background.xml b/design/src/main/res/drawable/snackbar_background.xml
new file mode 100644
index 0000000000..739b516713
--- /dev/null
+++ b/design/src/main/res/drawable/snackbar_background.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/design/src/main/res/layout-sw600dp/layout_snackbar.xml b/design/src/main/res/layout-sw600dp/layout_snackbar.xml
new file mode 100644
index 0000000000..b68395ab65
--- /dev/null
+++ b/design/src/main/res/layout-sw600dp/layout_snackbar.xml
@@ -0,0 +1,23 @@
+
+
+
+
\ No newline at end of file
diff --git a/design/src/main/res/layout/design_navigation_item.xml b/design/src/main/res/layout/design_navigation_item.xml
new file mode 100644
index 0000000000..59ee05c95d
--- /dev/null
+++ b/design/src/main/res/layout/design_navigation_item.xml
@@ -0,0 +1,26 @@
+
+
+
diff --git a/design/src/main/res/layout/design_navigation_item_header.xml b/design/src/main/res/layout/design_navigation_item_header.xml
new file mode 100644
index 0000000000..988600766c
--- /dev/null
+++ b/design/src/main/res/layout/design_navigation_item_header.xml
@@ -0,0 +1,21 @@
+
+
+
diff --git a/design/src/main/res/layout/design_navigation_item_separator.xml b/design/src/main/res/layout/design_navigation_item_separator.xml
new file mode 100644
index 0000000000..938a3fbdd2
--- /dev/null
+++ b/design/src/main/res/layout/design_navigation_item_separator.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
diff --git a/design/src/main/res/layout/design_navigation_item_subheader.xml b/design/src/main/res/layout/design_navigation_item_subheader.xml
new file mode 100644
index 0000000000..707ec6aea3
--- /dev/null
+++ b/design/src/main/res/layout/design_navigation_item_subheader.xml
@@ -0,0 +1,25 @@
+
+
+
diff --git a/design/src/main/res/layout/design_navigation_menu.xml b/design/src/main/res/layout/design_navigation_menu.xml
new file mode 100644
index 0000000000..a40f2eb536
--- /dev/null
+++ b/design/src/main/res/layout/design_navigation_menu.xml
@@ -0,0 +1,25 @@
+
+
+
diff --git a/design/src/main/res/layout/layout_snackbar.xml b/design/src/main/res/layout/layout_snackbar.xml
new file mode 100644
index 0000000000..604aafc037
--- /dev/null
+++ b/design/src/main/res/layout/layout_snackbar.xml
@@ -0,0 +1,23 @@
+
+
+
+
\ No newline at end of file
diff --git a/design/src/main/res/layout/layout_snackbar_include.xml b/design/src/main/res/layout/layout_snackbar_include.xml
new file mode 100644
index 0000000000..0cf2002d88
--- /dev/null
+++ b/design/src/main/res/layout/layout_snackbar_include.xml
@@ -0,0 +1,49 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/design/src/main/res/layout/layout_tab_icon.xml b/design/src/main/res/layout/layout_tab_icon.xml
new file mode 100644
index 0000000000..6464d1fcd2
--- /dev/null
+++ b/design/src/main/res/layout/layout_tab_icon.xml
@@ -0,0 +1,21 @@
+
+
+
+
\ No newline at end of file
diff --git a/design/src/main/res/layout/layout_tab_text.xml b/design/src/main/res/layout/layout_tab_text.xml
new file mode 100644
index 0000000000..a83bb3d107
--- /dev/null
+++ b/design/src/main/res/layout/layout_tab_text.xml
@@ -0,0 +1,23 @@
+
+
+
+
\ No newline at end of file
diff --git a/design/src/main/res/values-land/styles.xml b/design/src/main/res/values-land/styles.xml
new file mode 100644
index 0000000000..622a5e361e
--- /dev/null
+++ b/design/src/main/res/values-land/styles.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
diff --git a/design/src/main/res/values-sw600dp/config.xml b/design/src/main/res/values-sw600dp/config.xml
new file mode 100644
index 0000000000..baac13bf28
--- /dev/null
+++ b/design/src/main/res/values-sw600dp/config.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+ 1
+
+
\ No newline at end of file
diff --git a/design/src/main/res/values-sw600dp/dimens.xml b/design/src/main/res/values-sw600dp/dimens.xml
new file mode 100644
index 0000000000..37c3ff5a29
--- /dev/null
+++ b/design/src/main/res/values-sw600dp/dimens.xml
@@ -0,0 +1,29 @@
+
+
+
+
+
+ 160dp
+
+ 320dp
+ 576dp
+ @dimen/snackbar_padding_vertical
+ 24dp
+ 2dp
+ 0dp
+
+
\ No newline at end of file
diff --git a/design/src/main/res/values-sw600dp/styles.xml b/design/src/main/res/values-sw600dp/styles.xml
new file mode 100644
index 0000000000..622a5e361e
--- /dev/null
+++ b/design/src/main/res/values-sw600dp/styles.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
diff --git a/design/src/main/res/values-v21/dimens.xml b/design/src/main/res/values-v21/dimens.xml
new file mode 100644
index 0000000000..2a67937bb1
--- /dev/null
+++ b/design/src/main/res/values-v21/dimens.xml
@@ -0,0 +1,19 @@
+
+
+
+ 24dp
+
diff --git a/design/src/main/res/values/attrs.xml b/design/src/main/res/values/attrs.xml
new file mode 100644
index 0000000000..e4c1bf02c8
--- /dev/null
+++ b/design/src/main/res/values/attrs.xml
@@ -0,0 +1,260 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/design/src/main/res/values/colors.xml b/design/src/main/res/values/colors.xml
new file mode 100644
index 0000000000..216ad79930
--- /dev/null
+++ b/design/src/main/res/values/colors.xml
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+ #2EFFFFFF
+
+ #1AFFFFFF
+
+ #0F000000
+
+ #0A000000
+
+
+ #44000000
+
+ #14000000
+
+ @android:color/transparent
+
+ #FFDD2C00
+
+ #323232
+
+
\ No newline at end of file
diff --git a/design/src/main/res/values/config.xml b/design/src/main/res/values/config.xml
new file mode 100644
index 0000000000..2ff276a217
--- /dev/null
+++ b/design/src/main/res/values/config.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+ 2
+
+
\ No newline at end of file
diff --git a/design/src/main/res/values/dimens.xml b/design/src/main/res/values/dimens.xml
new file mode 100644
index 0000000000..45e83e6088
--- /dev/null
+++ b/design/src/main/res/values/dimens.xml
@@ -0,0 +1,56 @@
+
+
+
+
+ 8dp
+ 6dp
+ 24dp
+ 56dp
+ 40dp
+ 0.5dp
+
+ 320dp
+ 12dp
+ 32dp
+ 24dp
+ 8dp
+ 0dp
+ 8dp
+
+ 72dp
+ 264dp
+
+ -1px
+ -1px
+ 2dp
+ 0dp
+
+ 12dp
+ 14dp
+ 24dp
+
+
+ 0dp
+
+ 128dp
+
+ 14sp
+
+ 4dp
+
+
diff --git a/design/src/main/res/values/ids.xml b/design/src/main/res/values/ids.xml
new file mode 100644
index 0000000000..91acfd033f
--- /dev/null
+++ b/design/src/main/res/values/ids.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
diff --git a/design/src/main/res/values/strings.xml b/design/src/main/res/values/strings.xml
new file mode 100644
index 0000000000..4c02de1609
--- /dev/null
+++ b/design/src/main/res/values/strings.xml
@@ -0,0 +1,21 @@
+
+
+
+
+ android.support.design.widget.AppBarLayout$ScrollingViewBehavior
+
+
diff --git a/design/src/main/res/values/styles.xml b/design/src/main/res/values/styles.xml
new file mode 100644
index 0000000000..067846c0b1
--- /dev/null
+++ b/design/src/main/res/values/styles.xml
@@ -0,0 +1,116 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/eclipse-compile/appcompat/libs/android-support-v4.jar b/eclipse-compile/appcompat/libs/android-support-v4.jar
index e74b0d77d2..7b78bb8ee8 100644
Binary files a/eclipse-compile/appcompat/libs/android-support-v4.jar and b/eclipse-compile/appcompat/libs/android-support-v4.jar differ
diff --git a/eclipse-compile/appcompat/libs/android-support-v7-appcompat.jar b/eclipse-compile/appcompat/libs/android-support-v7-appcompat.jar
index b9dca8a789..830a4936a6 100644
Binary files a/eclipse-compile/appcompat/libs/android-support-v7-appcompat.jar and b/eclipse-compile/appcompat/libs/android-support-v7-appcompat.jar differ
diff --git a/eclipse-compile/appcompat/res/values-v21/styles_base.xml b/eclipse-compile/appcompat/res/values-v21/styles_base.xml
index 173a01c5d5..241cb04c59 100644
--- a/eclipse-compile/appcompat/res/values-v21/styles_base.xml
+++ b/eclipse-compile/appcompat/res/values-v21/styles_base.xml
@@ -71,6 +71,7 @@
+
@@ -173,6 +174,8 @@
+
+
diff --git a/eclipse-compile/appcompat/res/values/styles.xml b/eclipse-compile/appcompat/res/values/styles.xml
index b38c6ad94d..0ac20d558b 100644
--- a/eclipse-compile/appcompat/res/values/styles.xml
+++ b/eclipse-compile/appcompat/res/values/styles.xml
@@ -194,9 +194,7 @@
-
+
diff --git a/eclipse-compile/appcompat/res/values/themes_base.xml b/eclipse-compile/appcompat/res/values/themes_base.xml
index 3e2c841f2f..5db9d05c7c 100644
--- a/eclipse-compile/appcompat/res/values/themes_base.xml
+++ b/eclipse-compile/appcompat/res/values/themes_base.xml
@@ -571,7 +571,7 @@
- true
-