From 28385c95c889bbdbc55aeace6cdb4b34c83cbf00 Mon Sep 17 00:00:00 2001 From: GaidamakUA Date: Fri, 14 Aug 2015 14:12:59 +0300 Subject: [PATCH] Poi dialog design. Work in progress --- OsmAnd/build.gradle | 18 +- OsmAnd/res/layout/fragment_edit_poi.xml | 60 ++-- .../res/layout/fragment_edit_poi_advanced.xml | 52 +++- .../res/layout/fragment_edit_poi_normal.xml | 127 +++++++- OsmAnd/res/layout/main.xml | 1 + OsmAnd/res/layout/poi_tag_list_item.xml | 56 ++++ OsmAnd/res/values/colors.xml | 3 + OsmAnd/res/values/styles.xml | 287 ++++++++++-------- .../activities/search/GeoIntentActivity.java | 2 + .../plus/osmedit/AdvancedDataFragment.java | 160 ++++++++++ .../osmand/plus/osmedit/EditPoiFragment.java | 138 +++++++-- .../plus/osmedit/NormalDataFragment.java | 101 ++++++ .../plus/osmedit/OsmBugsRemoteUtil.java | 25 +- .../osmand/plus/osmedit/OsmEditingPlugin.java | 146 ++++----- cardview/build.gradle | 0 cardview/libs/android-support-v7-cardview.jar | Bin cardview/src/main/AndroidManifest.xml | 0 cardview/src/main/res/values/attrs.xml | 0 cardview/src/main/res/values/colors.xml | 0 cardview/src/main/res/values/dimens.xml | 0 cardview/src/main/res/values/styles.xml | 0 cardview/src/main/resources/.readme | 0 recyclerview/.gitignore | 1 + recyclerview/build.gradle | 23 ++ settings.gradle | 3 +- 25 files changed, 929 insertions(+), 274 deletions(-) create mode 100644 OsmAnd/res/layout/poi_tag_list_item.xml create mode 100644 OsmAnd/src/net/osmand/plus/osmedit/AdvancedDataFragment.java create mode 100644 OsmAnd/src/net/osmand/plus/osmedit/NormalDataFragment.java mode change 100644 => 100755 cardview/build.gradle mode change 100644 => 100755 cardview/libs/android-support-v7-cardview.jar mode change 100644 => 100755 cardview/src/main/AndroidManifest.xml mode change 100644 => 100755 cardview/src/main/res/values/attrs.xml mode change 100644 => 100755 cardview/src/main/res/values/colors.xml mode change 100644 => 100755 cardview/src/main/res/values/dimens.xml mode change 100644 => 100755 cardview/src/main/res/values/styles.xml mode change 100644 => 100755 cardview/src/main/resources/.readme create mode 100644 recyclerview/.gitignore create mode 100644 recyclerview/build.gradle diff --git a/OsmAnd/build.gradle b/OsmAnd/build.gradle index fed8601e39..cba2ebe41a 100644 --- a/OsmAnd/build.gradle +++ b/OsmAnd/build.gradle @@ -8,7 +8,6 @@ apply plugin: 'com.android.application' // APP_EDITION - date stamp of builds // APP_FEATURES - features +play_market +gps_status -parking_plugin -blackberry -free_version -amazon - // 1. To be done Filter fonts // // @@ -39,7 +38,7 @@ android { } defaultConfig { - minSdkVersion 9 + minSdkVersion 14 targetSdkVersion 21 versionCode System.getenv("APK_NUMBER_VERSION") ? System.getenv("APK_NUMBER_VERSION").toInteger() : versionCode @@ -209,13 +208,13 @@ task collectRoutingResources(type: Sync) { } task collectMiscResources(type: Copy) { - into "src/net/osmand/osm" - from("../../resources/obf_creation") { - include "rendering_types.xml" - } - from("../../resources/poi") { - include "poi_types.xml" - } + into "src/net/osmand/osm" + from("../../resources/obf_creation") { + include "rendering_types.xml" + } + from("../../resources/poi") { + include "poi_types.xml" + } } task collectRenderingStylesResources(type: Sync) { @@ -303,6 +302,7 @@ dependencies { compile project(path: ":OsmAnd-java", configuration: "android") compile project(":eclipse-compile:design") compile project(":cardview") + compile project(":recyclerview") compile fileTree( dir: "libs", include: ["*.jar"], diff --git a/OsmAnd/res/layout/fragment_edit_poi.xml b/OsmAnd/res/layout/fragment_edit_poi.xml index a9577a3d33..4973836569 100644 --- a/OsmAnd/res/layout/fragment_edit_poi.xml +++ b/OsmAnd/res/layout/fragment_edit_poi.xml @@ -10,7 +10,7 @@ + android:theme="@style/OsmandLightTheme.DarkActionbar"> - - - - - - + app:layout_scrollFlags="scroll"/> + + + + + + + + + + android:src="@drawable/ic_action_help"/> + app:tabIndicatorColor="@color/osmand_orange" + app:tabSelectedTextColor="@color/osmand_orange" + app:tabTextColor="@android:color/darker_gray"/> - + - + + + + + + +