diff --git a/OsmAnd/build.gradle b/OsmAnd/build.gradle
index 6478ce3521..fed8601e39 100644
--- a/OsmAnd/build.gradle
+++ b/OsmAnd/build.gradle
@@ -302,6 +302,7 @@ repositories {
dependencies {
compile project(path: ":OsmAnd-java", configuration: "android")
compile project(":eclipse-compile:design")
+ compile project(":cardview")
compile fileTree(
dir: "libs",
include: ["*.jar"],
diff --git a/OsmAnd/res/drawable-xhdpi/bg_first_usage.webp b/OsmAnd/res/drawable-xhdpi/bg_first_usage.webp
new file mode 100644
index 0000000000..4900083e15
Binary files /dev/null and b/OsmAnd/res/drawable-xhdpi/bg_first_usage.webp differ
diff --git a/OsmAnd/res/layout/first_usage_fragment.xml b/OsmAnd/res/layout/first_usage_fragment.xml
new file mode 100644
index 0000000000..f26e8d280c
--- /dev/null
+++ b/OsmAnd/res/layout/first_usage_fragment.xml
@@ -0,0 +1,91 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/OsmAnd/res/layout/main.xml b/OsmAnd/res/layout/main.xml
index 568f207877..4ba4f8cf96 100644
--- a/OsmAnd/res/layout/main.xml
+++ b/OsmAnd/res/layout/main.xml
@@ -46,5 +46,9 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
layout="@layout/dashboard_over_map" />
+
\ No newline at end of file
diff --git a/OsmAnd/res/values-af/strings.xml b/OsmAnd/res/values-af/strings.xml
index 02539171fe..4374311a7f 100644
--- a/OsmAnd/res/values-af/strings.xml
+++ b/OsmAnd/res/values-af/strings.xml
@@ -520,7 +520,7 @@
Vinnigste roete
"Skakel aan om vinnigste roete te bereken of skakel af vir kortste roete "
Teen vergroting {0} laai {1} teëls af ({2} MB)
- laai kaart af
+ laai kaart af
Kies maksimum vergroting om vooraf te laai
Hierdie kaart kan nie afgelaai word nie
deurlopende lewering
diff --git a/OsmAnd/res/values-ar/strings.xml b/OsmAnd/res/values-ar/strings.xml
index b878112ca8..21790be1b4 100644
--- a/OsmAnd/res/values-ar/strings.xml
+++ b/OsmAnd/res/values-ar/strings.xml
@@ -1901,7 +1901,7 @@ OsmAnd هو المصدر المفتوح و التي يجري تطويرها بن
ليل
الشروق/الغروب
مستشعر الضوء
- تحميل الخريطة
+ تحميل الخريطة
حدد أقصى تقريب للتحميل المسبق
لم يمكن تحميل هذه الخريطة
اكتب للتصفية
diff --git a/OsmAnd/res/values-be-rBY/strings.xml b/OsmAnd/res/values-be-rBY/strings.xml
index 1372fb0031..93514dd5c6 100644
--- a/OsmAnd/res/values-be-rBY/strings.xml
+++ b/OsmAnd/res/values-be-rBY/strings.xml
@@ -1445,7 +1445,7 @@
Najchutčejšy šliach
"Paznačyć kab raźlіčvać najchutčejšy šliach, cі źniać paznaku dlia najkaraciejšaha šliachu "
Na maštabie {0} zahruzіć {1} frahmientaŭ ({2} MB)
- Spampavać mapu
+ Spampavać mapu
Vybierycie maksіmaĺnaje pavielіčeńnie dlia papiaredniaj zahruzkі
Hetaja mapa nie moža być zahružana
Biespierapynnaja admalioŭka
diff --git a/OsmAnd/res/values-be/strings.xml b/OsmAnd/res/values-be/strings.xml
index 68a657d082..3d55ff3f6f 100644
--- a/OsmAnd/res/values-be/strings.xml
+++ b/OsmAnd/res/values-be/strings.xml
@@ -916,7 +916,7 @@
Найхутчэйшы шлях
Пазначыць каб разьлічваць найхутчэйшы шлях, ці зьняць пазнаку для найкарацейшага шляху
На маштабе {0} сьцягнуць {1} фрагмэнтаў ({2} МБ)
- Сьцягнуць мапу
+ Сьцягнуць мапу
Выберыце максімальнае павелічэньне для папярэдняй загрузкі
Гэтую мапу нельга сьцягнуць
Бесперапынная адмалёўка
diff --git a/OsmAnd/res/values-bg/strings.xml b/OsmAnd/res/values-bg/strings.xml
index d3ec1fb68c..e56ce3aeb1 100644
--- a/OsmAnd/res/values-bg/strings.xml
+++ b/OsmAnd/res/values-bg/strings.xml
@@ -1171,7 +1171,7 @@ OsmAnd е с отворен код и активно да се развива.
Най-бърз маршрут
Отметнете за изчисляване на най-бърз маршрут. Ако няма отметка се изчислява най-къс маршрут.
При мащаб {0} свалете {1} плочки ({2} MB)
- Сваляне на карта
+ Сваляне на карта
Изберете максималният мащаб
Тази карта не може да бъде свалена
Непрекъснато изчертаване
diff --git a/OsmAnd/res/values-ca/strings.xml b/OsmAnd/res/values-ca/strings.xml
index 1cf3e0f4f9..d1863c1f3c 100644
--- a/OsmAnd/res/values-ca/strings.xml
+++ b/OsmAnd/res/values-ca/strings.xml
@@ -516,7 +516,7 @@
Selecciona-ho tot
La ruta més ràpida
Activeu per calcular la ruta més ràpida o desactiveu per calcular la més curta
-Baixa el mapa
+Baixa el mapa
Per al nivell de zoom {0} es baixaran {1} tessel·les ({2} MB)
D\'acord
No, gràcies
diff --git a/OsmAnd/res/values-cs/strings.xml b/OsmAnd/res/values-cs/strings.xml
index 1e4a6c8726..6392ca0aef 100644
--- a/OsmAnd/res/values-cs/strings.xml
+++ b/OsmAnd/res/values-cs/strings.xml
@@ -459,7 +459,7 @@
Nejrychlejší trasa
Zapněte pro výpočet nejrychlejší trasy, vypněte, pokud chcete hledat tu nejkratší
Pro zvětšení {0} je třeba stáhnout {1} mapových dlaždic, celkem {2} MB
- Stáhnout mapu
+ Stáhnout mapu
Vyberte maximální zvětšení stahovaných map
Tuto mapu nelze stáhnout
Průběžné vykreslování
diff --git a/OsmAnd/res/values-da/strings.xml b/OsmAnd/res/values-da/strings.xml
index cfea667278..60eefedc92 100644
--- a/OsmAnd/res/values-da/strings.xml
+++ b/OsmAnd/res/values-da/strings.xml
@@ -844,7 +844,7 @@
Hurtigste rute
Aktiver for at beregne den hurtigste rute. Deaktiver for at beregne korteste rute
Ved zoom {0} hent {1} kortfliser ({2} MB)
- Hent kort
+ Hent kort
Vælg maksimal zoom der skal indlæses på forhånd
Kortet kunne ikke hentes
Kontinuerlig kortoptegning
diff --git a/OsmAnd/res/values-de/strings.xml b/OsmAnd/res/values-de/strings.xml
index f6184bfa8a..0042a71914 100644
--- a/OsmAnd/res/values-de/strings.xml
+++ b/OsmAnd/res/values-de/strings.xml
@@ -823,7 +823,7 @@
Schnellste Route
Auswählen für schnellste oder deaktivieren für kürzeste Route
Bei Zoomlevel {0} lade {1} Kacheln\n ({2} MB)
- Karte herunterladen
+ Karte herunterladen
Wähle maximale zu ladende Vergrößerung
Diese Karte konnte nicht geladen werden
Kontin. Kartenaufbau
diff --git a/OsmAnd/res/values-el/strings.xml b/OsmAnd/res/values-el/strings.xml
index e38b1de9ac..5886a1652b 100644
--- a/OsmAnd/res/values-el/strings.xml
+++ b/OsmAnd/res/values-el/strings.xml
@@ -686,7 +686,7 @@
Ταχύτερη διαδρομή
Ενεργοποίηση για υπολογισμό ταχύτερης διαδρομής ή για απενεργοποίηση συντομότερης διαδρομής
Στη κλίμακα {0} λήψη {1} πλακίδια ({2} MB)
- Λήψη χάρτη
+ Λήψη χάρτη
Επιλέξτε τη μέγιστη μεγέθυνση για προφόρτωση
Αυτός ο χάρτης δεν μπορεί να ληφθεί
Συνεχής απεικόνιση
diff --git a/OsmAnd/res/values-es-rAR/strings.xml b/OsmAnd/res/values-es-rAR/strings.xml
index 0cf716eb99..48f340d518 100644
--- a/OsmAnd/res/values-es-rAR/strings.xml
+++ b/OsmAnd/res/values-es-rAR/strings.xml
@@ -1613,7 +1613,7 @@
Ruta más rápida
"Active para calcular la ruta más rápida o desactive para la más corta "
En la ampliación {0}, descarga {1} teselas ({2} MB)
- Descargar mapa
+ Descargar mapa
Elige la ampliación máxima para precargar
No se pudo descargar el mapa
Visualización continua
diff --git a/OsmAnd/res/values-es/strings.xml b/OsmAnd/res/values-es/strings.xml
index 2222fb6cd4..c7e2596bfc 100644
--- a/OsmAnd/res/values-es/strings.xml
+++ b/OsmAnd/res/values-es/strings.xml
@@ -406,7 +406,7 @@
Ruta más rápida
"Habilitar para calcular la ruta más rápida o deshabilitar para la ruta más corta "
En acercamiento {0} descarga {1} teselas ({2} MB)
- Descargar mapa
+ Descargar mapa
Seleccione el acercamiento máximo para precargar
Este mapa no se pudo descargar
Visualización continua
diff --git a/OsmAnd/res/values-eu/strings.xml b/OsmAnd/res/values-eu/strings.xml
index 12d3f6751c..84aa8e31f4 100644
--- a/OsmAnd/res/values-eu/strings.xml
+++ b/OsmAnd/res/values-eu/strings.xml
@@ -814,7 +814,7 @@
Biderik azkarrena
Gaitu biderik azkarrenarentzat edo ezgaitu biderik motzenarentzat
{0} zoomean deskargatu {1} tesela ({2} MB)
- Mapa deskargatu
+ Mapa deskargatu
Aukeratu aurrekargatzeko gehienezko zooma
Mapa ezin izan da deskargatu
Etengabeko errenderizazioa
diff --git a/OsmAnd/res/values-fa/strings.xml b/OsmAnd/res/values-fa/strings.xml
index 70d0a8cb15..c2932adf4d 100644
--- a/OsmAnd/res/values-fa/strings.xml
+++ b/OsmAnd/res/values-fa/strings.xml
@@ -657,7 +657,7 @@
انتخاب همه
سریعترین مسیر
فعال کنید تا مسیر سریعتر محاسبه شود یا غیرفعال کنید تا مسیر کوتاهتر محاسبه شود
- دانلود نقشه
+ دانلود نقشه
انتخاب حداکثر میزان بزرگنمایی برای پیش فرض
استفاده از مکان به عنوان…
diff --git a/OsmAnd/res/values-fi/strings.xml b/OsmAnd/res/values-fi/strings.xml
index ed37b84f62..c8e92deccb 100644
--- a/OsmAnd/res/values-fi/strings.xml
+++ b/OsmAnd/res/values-fi/strings.xml
@@ -234,7 +234,7 @@
Valitse kaikki
Päivitä
Nopein reitti
- Lataa kartta
+ Lataa kartta
Etsi kulkuneuvoa
diff --git a/OsmAnd/res/values-fr/strings.xml b/OsmAnd/res/values-fr/strings.xml
index a067f56211..cd3a53fa68 100644
--- a/OsmAnd/res/values-fr/strings.xml
+++ b/OsmAnd/res/values-fr/strings.xml
@@ -399,7 +399,7 @@
Itinéraire le plus rapide
"Activer pour calculer l\'itinéraire le plus rapide et désactiver pour calculer l\'itinéraire le plus court "
Le zoom {0} télécharge {1} carreaux ({2} Mb )
- Télécharger la carte
+ Télécharger la carte
Sélectionnez le zoom maximum pour précharger la zone visible
Impossible de télécharger cette carte
Affichage continu
diff --git a/OsmAnd/res/values-gl/strings.xml b/OsmAnd/res/values-gl/strings.xml
index 85de2f1bc9..b79cc0680a 100644
--- a/OsmAnd/res/values-gl/strings.xml
+++ b/OsmAnd/res/values-gl/strings.xml
@@ -1339,7 +1339,7 @@
Itinerario máis rápido
"Active isto para calcular a ruta máis rápida ou desactíveo para a máis curta "
Na ampliación {0} descargar {1} teselas ({2} MB)
- Descargar mapa
+ Descargar mapa
Seleccionar a ampliaciń máxima que pré-cargar
Non foi posíbel descargar este mapa
Renderizado continuo
diff --git a/OsmAnd/res/values-he/strings.xml b/OsmAnd/res/values-he/strings.xml
index 58ee05ba1e..cf302d6bdc 100644
--- a/OsmAnd/res/values-he/strings.xml
+++ b/OsmAnd/res/values-he/strings.xml
@@ -713,7 +713,7 @@
המסלול המהיר ביותר
"יש להפעיל כדי לחשב את המסלול המהיר ביותר או לנטרל כדי לקבל את המסלול הקצר ביותר "
ברמת תקריב {0} יש להוריד {1} אריחים ({2} מ״ב)
- הורדת המפה
+ הורדת המפה
יש לבחור את רמת התקריב המרבית כדי לטעון מראש
לא ניתן להוריד מפה זאת
עיבוד תמונה רציף
diff --git a/OsmAnd/res/values-hr/strings.xml b/OsmAnd/res/values-hr/strings.xml
index 18b3cb0764..9dbe3ce179 100644
--- a/OsmAnd/res/values-hr/strings.xml
+++ b/OsmAnd/res/values-hr/strings.xml
@@ -511,7 +511,7 @@
Zaslon visoke razlučivosti
Telefon
upišite za filtriranje
- Preuzmi kartu
+ Preuzmi kartu
Ova karta se ne može preuzeti
Dnevni/noćni način rada
Odaberite pravilo za izmjenu između dnevnog i noćnog načina rada
diff --git a/OsmAnd/res/values-hu/strings.xml b/OsmAnd/res/values-hu/strings.xml
index 17b0cb2384..b190bd6cfa 100644
--- a/OsmAnd/res/values-hu/strings.xml
+++ b/OsmAnd/res/values-hu/strings.xml
@@ -454,7 +454,7 @@
Leggyorsabb útvonal
Leggyorsabb útvonal kiszámításának engedélyezése, vagy tiltása a legrövidebb útért
{0} nagyításnál {1} képkocka letöltése ({2} Mb )
- Térkép letöltése
+ Térkép letöltése
Maximális nagyítás kiválasztása a látható terület előtöltéséhez
Ezt a térképet nem lehet letölteni
Folyamatos megjelenítés
diff --git a/OsmAnd/res/values-it/strings.xml b/OsmAnd/res/values-it/strings.xml
index dba23166f9..7dd3745630 100644
--- a/OsmAnd/res/values-it/strings.xml
+++ b/OsmAnd/res/values-it/strings.xml
@@ -381,7 +381,7 @@
Percorso più veloce
Abilita per calcolare il percorso più veloce o disabilita per il percorso più corto
Per lo zoom {0} scarica {1} tasselli ({2} MB)
- Download mappa
+ Download mappa
Seleziona lo zoom massimo da precaricare
Non è stato possibile scaricare questa mappa
Disegno continuo
diff --git a/OsmAnd/res/values-ja/strings.xml b/OsmAnd/res/values-ja/strings.xml
index c02f9fd220..313733cbd8 100644
--- a/OsmAnd/res/values-ja/strings.xml
+++ b/OsmAnd/res/values-ja/strings.xml
@@ -218,7 +218,7 @@ MB)をダウンロードしますか?
"有効化なら目的地までの最速ルートで計算、無効化なら最短ルートで計算 "
ズームレベル {0}で
{1} 件のタイル({2} MB)をダウンロード
- マップをダウンロード
+ マップをダウンロード
プリロードする最大ズームを選択
このマップはダウンロードできませんでした
diff --git a/OsmAnd/res/values-ka/strings.xml b/OsmAnd/res/values-ka/strings.xml
index a482bbffc4..cccd9a11a8 100644
--- a/OsmAnd/res/values-ka/strings.xml
+++ b/OsmAnd/res/values-ka/strings.xml
@@ -453,7 +453,7 @@
უსწრაფესი გზა
"ჩართეთ უსწრაფესი გზის დასათვლელად ან გამორთეთ უმოკლესისათვის "
გადიდებისას {0} გადმოსაწერია {1} ნაწილი ({2} MB)
- რუკის გადმოწერა
+ რუკის გადმოწერა
აირჩიეთ მაქსიმალური გადიდება ჩასატვირთად
რუკის გადმოწერა შეუძლებელია
გაგრძელებადი რენდერი
diff --git a/OsmAnd/res/values-ko/strings.xml b/OsmAnd/res/values-ko/strings.xml
index 496d9c5901..201a6a0973 100644
--- a/OsmAnd/res/values-ko/strings.xml
+++ b/OsmAnd/res/values-ko/strings.xml
@@ -490,7 +490,7 @@
가장 빠른 경로
"가장 빠른 경로를 활성화하거나 or 가장 짧은 경로를 비활성화합니다 "
줌에서 {0} 다운로드 {1} 타일 ({2} MB)
- 맵 다운로드
+ 맵 다운로드
가시 영역을 미리 로드하기 위한 최대 줌 선택
맵을 다운로드할 수 없습니다
diff --git a/OsmAnd/res/values-land/dimens.xml b/OsmAnd/res/values-land/dimens.xml
new file mode 100644
index 0000000000..03e0b0de49
--- /dev/null
+++ b/OsmAnd/res/values-land/dimens.xml
@@ -0,0 +1,5 @@
+
+
+ 33dp
+ 30sp
+
\ No newline at end of file
diff --git a/OsmAnd/res/values-lt/strings.xml b/OsmAnd/res/values-lt/strings.xml
index 5b63b27b2b..ceb4a21ecc 100644
--- a/OsmAnd/res/values-lt/strings.xml
+++ b/OsmAnd/res/values-lt/strings.xml
@@ -595,7 +595,7 @@
Greičiausias maršrutas
Įjunkite, kad būtų skaičiuojamas greičiausias maršrutas. Priešingu atveju bus skaičiuojamas trumpiausias maršrutas
Esant {0} dydžiui parsiųsti {1} žemėlapio lakštus ({2} MB)
- Parsiųsti žemėlapį
+ Parsiųsti žemėlapį
Pasirinkite didžiausią dydį, kurį parsiųsti
Šio žemėlapio parsiųsti nepavyko
Nenutrūkstamas vaizdavimas
diff --git a/OsmAnd/res/values-lv/strings.xml b/OsmAnd/res/values-lv/strings.xml
index 647b859a7a..b6c31f59c2 100644
--- a/OsmAnd/res/values-lv/strings.xml
+++ b/OsmAnd/res/values-lv/strings.xml
@@ -447,7 +447,7 @@
Ātrākais maršruts
Iespējot, lai rēķinātu ātrāko maršrutu vai atspējot, lai rēķinātu īsāko maršrutu
Palielinājumam {0} lejupielādēt {1} attēlus ({2} MB)
- Lejupielādēt karti
+ Lejupielādēt karti
Izvēlēties maksimālo palielinājumu pirmsielādei
Karti nevar lejupielādēt
Nepārtrauktā renderēšana
diff --git a/OsmAnd/res/values-mr/strings.xml b/OsmAnd/res/values-mr/strings.xml
index b23e26e179..f43bf6d933 100644
--- a/OsmAnd/res/values-mr/strings.xml
+++ b/OsmAnd/res/values-mr/strings.xml
@@ -173,7 +173,7 @@
सर्व निवडा
वेगवान रस्ता
निवडा सर्वात वेगवान रस्त्यासाठी किंवा निवड काढा सर्वात जवळच्या रस्त्यासाठी
- नकाशा डाउनलोड करा
+ नकाशा डाउनलोड करा
पिओआय वेबसाइट दाखवा
पिओआय फोन दाखवा
वेबसाइट
diff --git a/OsmAnd/res/values-nb/strings.xml b/OsmAnd/res/values-nb/strings.xml
index 48ebefd911..7a49deac5d 100644
--- a/OsmAnd/res/values-nb/strings.xml
+++ b/OsmAnd/res/values-nb/strings.xml
@@ -402,7 +402,7 @@
Raskeste rute
Aktiver for å beregne raskeste rute eller deaktiver for korteste rute
Ved zoom {0} last ned {1} fliser ({2} MB)
- Last ned kart
+ Last ned kart
Vektor-opptegning
Velg utseende på opptegningen
Nettsted
diff --git a/OsmAnd/res/values-nl/strings.xml b/OsmAnd/res/values-nl/strings.xml
index 2537f17933..0eb1300d90 100644
--- a/OsmAnd/res/values-nl/strings.xml
+++ b/OsmAnd/res/values-nl/strings.xml
@@ -476,7 +476,7 @@
Snelste route
Activeer voor de snelste route of deactiveer voor de kortste route
Op zoom {0} omvat de download {1} kaartsegmenten ({2} MB)
- Download kaart
+ Download kaart
Kies maximum zoom om vooraf te laden
Kaarten konden niet worden gedownload
Continue kaartgeneratie
diff --git a/OsmAnd/res/values-pl/strings.xml b/OsmAnd/res/values-pl/strings.xml
index f366a9e5eb..dcbbc5bc84 100644
--- a/OsmAnd/res/values-pl/strings.xml
+++ b/OsmAnd/res/values-pl/strings.xml
@@ -301,7 +301,7 @@
Najszybsza trasa
"Wyznacza najszybszą trasę zamiast najkrótszej "
Na poziomie {0} pobrano {1} kafelków ({2} MB)
- Pobierz mapę
+ Pobierz mapę
Wybierz maksymalne przybliżenie do pobrania
Nie udało się pobrać tej mapy
Rysowanie ciągłe
diff --git a/OsmAnd/res/values-pt-rBR/strings.xml b/OsmAnd/res/values-pt-rBR/strings.xml
index a4b58f7ff8..b9d3a074f1 100644
--- a/OsmAnd/res/values-pt-rBR/strings.xml
+++ b/OsmAnd/res/values-pt-rBR/strings.xml
@@ -1416,7 +1416,7 @@
Rota mais rápida
"Ative para calcular a rota mais rápida ou desative para calcular a rota mais curta "
No zoom {0}: baixar {1} imagens ({2} MB)
- Baixar mapa
+ Baixar mapa
Selecionar zoom máximo para pré-carregar
Não é possível baixar este mapa
Renderização contínua
diff --git a/OsmAnd/res/values-pt/strings.xml b/OsmAnd/res/values-pt/strings.xml
index 1aea349178..78e58934ce 100644
--- a/OsmAnd/res/values-pt/strings.xml
+++ b/OsmAnd/res/values-pt/strings.xml
@@ -65,7 +65,7 @@
Caminho mais rápido
Ative para calcular a rota mais rápida ou desative para calcular a rota mais curta
Zoom {0}: baixar {1} imagens ({2} MB )
- Baixar mapa
+ Baixar mapa
Zoom máximo para baixar
Não é possível fazer o download deste mapa
Processamento contínuo
diff --git a/OsmAnd/res/values-ro/strings.xml b/OsmAnd/res/values-ro/strings.xml
index b570006d84..e91fae603b 100644
--- a/OsmAnd/res/values-ro/strings.xml
+++ b/OsmAnd/res/values-ro/strings.xml
@@ -738,7 +738,7 @@
Cea mai rapidă rută
Activați pentru a calcula ruta cea mai rapidă sau dezactivați pentru ruta cea mai scurtă
La nivelul de zoom {0} se descarcă {1} porțiuni ({2} MB)
- Descarcă harta
+ Descarcă harta
Selectați nivelul de zoom maxim pentru pre-încărcare
Harta nu s-a putut descărca
Randare continuă
diff --git a/OsmAnd/res/values-ru/strings.xml b/OsmAnd/res/values-ru/strings.xml
index 20aa2691c2..3cf7b0f2f1 100644
--- a/OsmAnd/res/values-ru/strings.xml
+++ b/OsmAnd/res/values-ru/strings.xml
@@ -501,7 +501,7 @@
Скоростной маршрут
Расчёт скоростного маршрута вместо кратчайшего
На масштабе {0} загрузить {1} тайлов ({2} Mb )
- Загрузить карту
+ Загрузить карту
Выберите максимальный масштаб для загрузки видимой области
Выбранная карта не может быть загружена
Непрерывный рендеринг
diff --git a/OsmAnd/res/values-sc/strings.xml b/OsmAnd/res/values-sc/strings.xml
index 6e25ee2030..1ff4dc58f5 100644
--- a/OsmAnd/res/values-sc/strings.xml
+++ b/OsmAnd/res/values-sc/strings.xml
@@ -1313,7 +1313,7 @@
Ischerta totu
Àndala prus lestra
Pro su zoom {0} iscàrriga {1} tasseddos ({2} MB)
- Iscàrriga mapa
+ Iscàrriga mapa
No est istadu possìbile iscarrigare custa mapa
Imprea sa positzione …
Disinnu carrigadu
diff --git a/OsmAnd/res/values-sk/strings.xml b/OsmAnd/res/values-sk/strings.xml
index ae330a660a..316f88e217 100644
--- a/OsmAnd/res/values-sk/strings.xml
+++ b/OsmAnd/res/values-sk/strings.xml
@@ -571,7 +571,7 @@
Najrýchlejšia trasa
Zapnite na výpočet najrýchlejšej trasy alebo vypnite pre najkratšiu trasu
Pri priblížení {0} sa stiahne {1} dlaždíc ({2} Mb )
- Stiahnuť mapu
+ Stiahnuť mapu
Vybrať max. priblíženie viditeľnej oblasti na načítanie
Táto mapa sa nedá stiahnuť
Postupné vykresľovanie
diff --git a/OsmAnd/res/values-sl/strings.xml b/OsmAnd/res/values-sl/strings.xml
index 68c919f072..4c8eaf25c8 100644
--- a/OsmAnd/res/values-sl/strings.xml
+++ b/OsmAnd/res/values-sl/strings.xml
@@ -825,7 +825,7 @@
Izberi vse
Osveži
Pri povečavi {0} prejmi {1} ploščic ({2} MB)
- Prejem zemljevida
+ Prejem zemljevida
Izberite največjo povečavo za predhodno nalaganje
Tega zemljevida ni mogoče prejeti
Stalno izrisovanje
diff --git a/OsmAnd/res/values-sv/strings.xml b/OsmAnd/res/values-sv/strings.xml
index 109eb47ffa..74ea990a1d 100644
--- a/OsmAnd/res/values-sv/strings.xml
+++ b/OsmAnd/res/values-sv/strings.xml
@@ -643,7 +643,7 @@
Snabbaste vägen
Aktivera för att beräkna den snabbaste vägen eller inaktivera för den kortaste vägen
Vid zoom {0} hämta {1} kartbitar ({2} MB)
- Ladda ner karta
+ Ladda ner karta
Sevärdheter
Hantera kartfiler
"Kartans utseende kan för vissa vektorkartor ändras mellan dag (ljusare) och natt (mörkare).
diff --git a/OsmAnd/res/values-tr/strings.xml b/OsmAnd/res/values-tr/strings.xml
index aaf0849f24..034c90ac5e 100644
--- a/OsmAnd/res/values-tr/strings.xml
+++ b/OsmAnd/res/values-tr/strings.xml
@@ -393,7 +393,7 @@
Hepsini seç
Yenile
En hızlı rota
- Haritayı indir
+ Haritayı indir
Bu harita indirilemedi
Telefon
Yüksek çözünürlüklü ekran
diff --git a/OsmAnd/res/values-uk/strings.xml b/OsmAnd/res/values-uk/strings.xml
index fcb7a0876f..a30bf3ea95 100644
--- a/OsmAnd/res/values-uk/strings.xml
+++ b/OsmAnd/res/values-uk/strings.xml
@@ -520,7 +520,7 @@
Найшвидший маршрут
Надавати перевагу найшвидшому маршруту перед найкоротшим
На масштабі{0} завантажувати {1} тайли ({2} MB)
- Завантажити мапу
+ Завантажити мапу
Вибрати максимальний масштаб для завантаження
Дана мапа не може бути завантажена
Безперервний рендеринг
diff --git a/OsmAnd/res/values-vi/strings.xml b/OsmAnd/res/values-vi/strings.xml
index be2e675978..c0f91803d7 100644
--- a/OsmAnd/res/values-vi/strings.xml
+++ b/OsmAnd/res/values-vi/strings.xml
@@ -287,7 +287,7 @@ Translator: Le Viet Thanh; email: lethanhx2k@gmail.com -->
Nhanh nhất
Bật/tắt tính năng tìm đường đi nhanh nhất
Tại mức zoom {0} tải về {1} tiles ({2} MB)
- Tải bản đồ
+ Tải bản đồ
Lựa chọn Zoom lớn nhất để tải lại
Bản đồ này không tải được
diff --git a/OsmAnd/res/values-zh-rCN/strings.xml b/OsmAnd/res/values-zh-rCN/strings.xml
index c4321e129d..dc3c54ebed 100644
--- a/OsmAnd/res/values-zh-rCN/strings.xml
+++ b/OsmAnd/res/values-zh-rCN/strings.xml
@@ -766,7 +766,7 @@
全部选中
最快路线
打开则规划最快路线,关闭则计算最短路线
- 下载地图
+ 下载地图
此地图无法下载
渲染选中区域时发生错误
使用位置 …
diff --git a/OsmAnd/res/values-zh-rTW/strings.xml b/OsmAnd/res/values-zh-rTW/strings.xml
index 56f120cf2d..310bd8d76e 100644
--- a/OsmAnd/res/values-zh-rTW/strings.xml
+++ b/OsmAnd/res/values-zh-rTW/strings.xml
@@ -628,7 +628,7 @@
最快路線
啟用為預估最快的路線而停用則為最短的路線
在縮放第{0}級別,下載{1}張地圖圖磚({2} MB)
- 下載地圖
+ 下載地圖
選擇要預載的最大縮放級別
此地圖無法下載
連續繪製
diff --git a/OsmAnd/res/values/dimens.xml b/OsmAnd/res/values/dimens.xml
index 1f434fefd9..e83ac0b6a9 100644
--- a/OsmAnd/res/values/dimens.xml
+++ b/OsmAnd/res/values/dimens.xml
@@ -3,4 +3,6 @@
400dip
400dip
200dip
+ 87dp
+ 35sp
\ No newline at end of file
diff --git a/OsmAnd/res/values/strings.xml b/OsmAnd/res/values/strings.xml
index 99d824111c..5aff817050 100644
--- a/OsmAnd/res/values/strings.xml
+++ b/OsmAnd/res/values/strings.xml
@@ -1901,7 +1901,7 @@ Afghanistan, Albania, Algeria, Andorra, Angola, Anguilla, Antigua and Barbuda, A
Fastest route
Enable to calculate fastest route or disable for shortest route
At zoom {0} download {1} tiles ({2} MB)
- Download map
+ Download map
Select maximum zoom to preload
This map could not be downloaded
Continuous rendering
@@ -2229,4 +2229,7 @@ Afghanistan, Albania, Algeria, Andorra, Angola, Anguilla, Antigua and Barbuda, A
Dashboard options
Card was hidden
UNDO
+ Skip
+ OsmAnd
+
diff --git a/OsmAnd/res/values/styles.xml b/OsmAnd/res/values/styles.xml
index ce8ec18e2b..abdabf94cc 100644
--- a/OsmAnd/res/values/styles.xml
+++ b/OsmAnd/res/values/styles.xml
@@ -86,7 +86,8 @@
- @color/color_black
- @color/color_black
- @color/spinner_list_background_light
-
+ - @color/color_white
+
- @color/actionbar_light_color
- @style/Widget.Styled.ActionBarLight
- @drawable/ic_action_mode_back
@@ -126,7 +127,8 @@
- @color/color_white
- @color/color_white
- @color/spinner_list_background_dark
-
+ - @color/color_white
+
- @color/actionbar_dark_color
- @style/Widget.Styled.ActionBarDark
@@ -201,6 +203,4 @@
- @anim/grow_from_bottom
- @anim/shrink_from_top
-
-
diff --git a/OsmAnd/src/net/osmand/plus/FirstUsageFragment.java b/OsmAnd/src/net/osmand/plus/FirstUsageFragment.java
new file mode 100644
index 0000000000..9e6acb5afb
--- /dev/null
+++ b/OsmAnd/src/net/osmand/plus/FirstUsageFragment.java
@@ -0,0 +1,74 @@
+package net.osmand.plus;
+
+import android.annotation.TargetApi;
+import android.content.Intent;
+import android.graphics.drawable.Drawable;
+import android.os.Build;
+import android.os.Bundle;
+import android.support.annotation.Nullable;
+import android.support.v4.app.Fragment;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.view.Window;
+import android.view.WindowManager;
+import android.widget.Button;
+import android.widget.EditText;
+
+import net.osmand.plus.activities.MapActivity;
+import net.osmand.plus.download.DownloadActivity;
+
+public class FirstUsageFragment extends Fragment {
+ public static final String TAG = "FirstUsageFragment";
+ @Nullable
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
+ View view = inflater.inflate(R.layout.first_usage_fragment, container, false);
+ final EditText editText = (EditText) view.findViewById(R.id.searchEditText);
+ Drawable searchIcon = ((MapActivity) getActivity()).getMyApplication().getIconsCache()
+ .getContentIcon(R.drawable.ic_action_search_dark);
+ editText.setCompoundDrawablesWithIntrinsicBounds(searchIcon, null, null, null);
+ Button skipButton = (Button) view.findViewById(R.id.skip_button);
+ skipButton.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View v) {
+ getActivity().getSupportFragmentManager().beginTransaction()
+ .remove(FirstUsageFragment.this).commit();
+ }
+ });
+ editText.setOnFocusChangeListener(new View.OnFocusChangeListener() {
+ @Override
+ public void onFocusChange(View v, boolean hasFocus) {
+ if (hasFocus) {
+ getActivity().getSupportFragmentManager().beginTransaction()
+ .remove(FirstUsageFragment.this).commit();
+ final Intent intent = new Intent(getActivity(), DownloadActivity.class);
+ intent.putExtra(DownloadActivity.TAB_TO_OPEN, DownloadActivity.DOWNLOAD_TAB);
+ getActivity().startActivity(intent);
+ }
+ }
+ });
+ return view;
+ }
+
+
+ @TargetApi(Build.VERSION_CODES.HONEYCOMB)
+ @Override
+ public void onResume() {
+ super.onResume();
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
+ Window w = getActivity().getWindow(); // in Activity's onCreate() for instance
+ w.setFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS,
+ WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
+ }
+ }
+
+ @Override
+ public void onPause() {
+ super.onPause();
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
+ Window w = getActivity().getWindow(); // in Activity's onCreate() for instance
+ w.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
+ }
+ }
+}
diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java
index 0a0e03abc1..61172fd266 100644
--- a/OsmAnd/src/net/osmand/plus/activities/MapActivity.java
+++ b/OsmAnd/src/net/osmand/plus/activities/MapActivity.java
@@ -1,12 +1,30 @@
package net.osmand.plus.activities;
-import java.io.File;
-import java.util.ArrayList;
-import java.util.LinkedHashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
+import android.app.Dialog;
+import android.app.Notification;
+import android.app.NotificationManager;
+import android.app.PendingIntent;
+import android.content.Context;
+import android.content.Intent;
+import android.media.AudioManager;
+import android.net.Uri;
+import android.os.AsyncTask;
+import android.os.Build;
+import android.os.Bundle;
+import android.os.Environment;
+import android.os.Handler;
+import android.os.Message;
+import android.support.v4.app.NotificationCompat.Builder;
+import android.support.v7.app.NotificationCompat;
+import android.view.KeyEvent;
+import android.view.MotionEvent;
+import android.view.View;
+import android.view.ViewStub;
+import android.view.Window;
+import android.view.WindowManager;
+import android.widget.ProgressBar;
+import android.widget.TextView;
+import android.widget.Toast;
import net.osmand.Location;
import net.osmand.StateChangedListener;
@@ -26,6 +44,7 @@ import net.osmand.plus.AppInitializer.AppInitializeListener;
import net.osmand.plus.AppInitializer.InitEvents;
import net.osmand.plus.ApplicationMode;
import net.osmand.plus.BusyIndicator;
+import net.osmand.plus.FirstUsageFragment;
import net.osmand.plus.OsmAndConstants;
import net.osmand.plus.OsmandApplication;
import net.osmand.plus.OsmandPlugin;
@@ -53,31 +72,14 @@ import net.osmand.plus.views.OsmandMapTileView;
import net.osmand.plus.views.corenative.NativeCoreContext;
import net.osmand.render.RenderingRulesStorage;
import net.osmand.util.Algorithms;
-import android.app.Dialog;
-import android.app.Notification;
-import android.app.NotificationManager;
-import android.app.PendingIntent;
-import android.content.Context;
-import android.content.Intent;
-import android.media.AudioManager;
-import android.net.Uri;
-import android.os.AsyncTask;
-import android.os.Build;
-import android.os.Bundle;
-import android.os.Environment;
-import android.os.Handler;
-import android.os.Message;
-import android.support.v4.app.NotificationCompat.Builder;
-import android.support.v7.app.NotificationCompat;
-import android.view.KeyEvent;
-import android.view.MotionEvent;
-import android.view.View;
-import android.view.ViewStub;
-import android.view.Window;
-import android.view.WindowManager;
-import android.widget.ProgressBar;
-import android.widget.TextView;
-import android.widget.Toast;
+
+import java.io.File;
+import java.util.ArrayList;
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
public class MapActivity extends AccessibleActivity {
@@ -207,6 +209,12 @@ public class MapActivity extends AccessibleActivity {
System.err.println("OnCreate for MapActivity took " + (System.currentTimeMillis() - tm) + " ms");
}
mapView.refreshMap(true);
+
+ if(getMyApplication().getAppInitializer().isFirstTime(this)) {
+ getSupportFragmentManager().beginTransaction()
+ .add(R.id.fragmentContainer, new FirstUsageFragment(),
+ FirstUsageFragment.TAG).commit();
+ }
}
private void checkAppInitialization() {
diff --git a/OsmAnd/src/net/osmand/plus/rastermaps/OsmandRasterMapsPlugin.java b/OsmAnd/src/net/osmand/plus/rastermaps/OsmandRasterMapsPlugin.java
index da4a876ccc..ac6440b83b 100644
--- a/OsmAnd/src/net/osmand/plus/rastermaps/OsmandRasterMapsPlugin.java
+++ b/OsmAnd/src/net/osmand/plus/rastermaps/OsmandRasterMapsPlugin.java
@@ -1,9 +1,18 @@
package net.osmand.plus.rastermaps;
-import java.io.File;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Map;
+import android.app.Activity;
+import android.app.AlertDialog;
+import android.app.AlertDialog.Builder;
+import android.content.DialogInterface;
+import android.os.AsyncTask;
+import android.view.View;
+import android.widget.AdapterView;
+import android.widget.AdapterView.OnItemSelectedListener;
+import android.widget.ArrayAdapter;
+import android.widget.CheckBox;
+import android.widget.EditText;
+import android.widget.Spinner;
+import android.widget.Toast;
import net.osmand.IndexConstants;
import net.osmand.ResultMatcher;
@@ -26,19 +35,11 @@ import net.osmand.plus.activities.MapActivityLayers;
import net.osmand.plus.views.MapTileLayer;
import net.osmand.plus.views.OsmandMapTileView;
import net.osmand.util.Algorithms;
-import android.app.Activity;
-import android.app.AlertDialog;
-import android.app.AlertDialog.Builder;
-import android.content.DialogInterface;
-import android.os.AsyncTask;
-import android.view.View;
-import android.widget.AdapterView;
-import android.widget.AdapterView.OnItemSelectedListener;
-import android.widget.ArrayAdapter;
-import android.widget.CheckBox;
-import android.widget.EditText;
-import android.widget.Spinner;
-import android.widget.Toast;
+
+import java.io.File;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
public class OsmandRasterMapsPlugin extends OsmandPlugin {
public static final String ID = "osmand.rastermaps";
@@ -237,7 +238,7 @@ public class OsmandRasterMapsPlugin extends OsmandPlugin {
public boolean onContextMenuClick(ArrayAdapter> adapter, int resId, int pos, boolean isChecked) {
if (resId == R.string.context_menu_item_update_map) {
mapActivity.getMapActions().reloadTile(mapView.getZoom(), latitude, longitude);
- } else if (resId == R.string.context_menu_item_download_map) {
+ } else if (resId == R.string.shared_string_download_map) {
DownloadTilesDialog dlg = new DownloadTilesDialog(mapActivity, (OsmandApplication) mapActivity.getApplication(), mapView);
dlg.openDialog();
}
@@ -246,7 +247,7 @@ public class OsmandRasterMapsPlugin extends OsmandPlugin {
};
adapter.item(R.string.context_menu_item_update_map).iconColor(R.drawable.ic_action_refresh_dark)
.listen(listener).reg();
- adapter.item(R.string.context_menu_item_download_map).iconColor(R.drawable.ic_action_import)
+ adapter.item(R.string.shared_string_download_map).iconColor(R.drawable.ic_action_import)
.listen(listener).reg();
}
}
diff --git a/OsmAnd/src/net/osmand/plus/widgets/TextViewEx.java b/OsmAnd/src/net/osmand/plus/widgets/TextViewEx.java
index e6ddf2ef47..f3648e4ab2 100644
--- a/OsmAnd/src/net/osmand/plus/widgets/TextViewEx.java
+++ b/OsmAnd/src/net/osmand/plus/widgets/TextViewEx.java
@@ -4,12 +4,12 @@ import android.annotation.SuppressLint;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.TypedArray;
-import android.graphics.Canvas;
import android.graphics.Typeface;
import android.os.Build;
import android.support.v7.internal.text.AllCapsTransformationMethod;
import android.util.AttributeSet;
import android.widget.TextView;
+
import net.osmand.plus.R;
import net.osmand.plus.helpers.FontCache;
@@ -66,8 +66,9 @@ public class TextViewEx extends TextView {
String typefaceName = resolvedAttributes.getString(R.styleable.TextViewEx_typeface);
Typeface typeface = FontCache.getFont(target.getContext(), typefaceName);
+ int style = target.getTypeface() == null ? 0 : target.getTypeface().getStyle();
if (typeface != null)
- target.setTypeface(typeface);
+ target.setTypeface(typeface, style);
}
public static void setAllCapsCompat(TextView target, boolean allCaps) {
diff --git a/cardview/build.gradle b/cardview/build.gradle
new file mode 100644
index 0000000000..391b3c602c
--- /dev/null
+++ b/cardview/build.gradle
@@ -0,0 +1,22 @@
+apply plugin: 'com.android.library'
+
+android {
+ compileSdkVersion 21
+ buildToolsVersion "21.1.2"
+
+ defaultConfig {
+ minSdkVersion 7
+ targetSdkVersion 21
+ }
+
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
+ }
+ }
+}
+
+dependencies {
+ compile files('libs/android-support-v7-cardview.jar')
+}
diff --git a/cardview/libs/android-support-v7-cardview.jar b/cardview/libs/android-support-v7-cardview.jar
new file mode 100644
index 0000000000..09e4e386c0
Binary files /dev/null and b/cardview/libs/android-support-v7-cardview.jar differ
diff --git a/cardview/src/main/AndroidManifest.xml b/cardview/src/main/AndroidManifest.xml
new file mode 100644
index 0000000000..3ef02dc9d6
--- /dev/null
+++ b/cardview/src/main/AndroidManifest.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
diff --git a/cardview/src/main/res/values/attrs.xml b/cardview/src/main/res/values/attrs.xml
new file mode 100644
index 0000000000..a0bd67d861
--- /dev/null
+++ b/cardview/src/main/res/values/attrs.xml
@@ -0,0 +1,42 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/cardview/src/main/res/values/colors.xml b/cardview/src/main/res/values/colors.xml
new file mode 100644
index 0000000000..3ed7087fe4
--- /dev/null
+++ b/cardview/src/main/res/values/colors.xml
@@ -0,0 +1,26 @@
+
+
+
+
+
+ #FFFAFAFA
+
+ #FF202020
+
+ #37000000
+
+ #03000000
+
\ No newline at end of file
diff --git a/cardview/src/main/res/values/dimens.xml b/cardview/src/main/res/values/dimens.xml
new file mode 100644
index 0000000000..ebfbb3a971
--- /dev/null
+++ b/cardview/src/main/res/values/dimens.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+ 2dp
+
+ 2dp
+
+ 1dp
+
\ No newline at end of file
diff --git a/cardview/src/main/res/values/styles.xml b/cardview/src/main/res/values/styles.xml
new file mode 100644
index 0000000000..99dfbc98cc
--- /dev/null
+++ b/cardview/src/main/res/values/styles.xml
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/cardview/src/main/resources/.readme b/cardview/src/main/resources/.readme
new file mode 100644
index 0000000000..4bcebad80c
--- /dev/null
+++ b/cardview/src/main/resources/.readme
@@ -0,0 +1,2 @@
+This hidden file is there to ensure there is an src folder.
+Once we support binary library this will go away.
\ No newline at end of file
diff --git a/import-summary.txt b/import-summary.txt
index 6b9133f411..119186d7ce 100644
--- a/import-summary.txt
+++ b/import-summary.txt
@@ -1,23 +1,15 @@
ECLIPSE ANDROID PROJECT IMPORT SUMMARY
======================================
-Ignored Files:
---------------
-The following files were *not* copied into the new Gradle project; you
-should evaluate whether these are still needed in your project and if
-so manually move them:
-
-* .DS_Store
-
Moved Files:
------------
Android Gradle projects use a different directory structure than ADT
Eclipse projects. Here's how the projects were restructured:
-* AndroidManifest.xml => design/src/main/AndroidManifest.xml
-* res/ => design/src/main/res/
-* src/ => design/src/main/java
-* src/.readme => design/src/main/resources/.readme
+* AndroidManifest.xml => cardview/src/main/AndroidManifest.xml
+* res/ => cardview/src/main/res/
+* src/ => cardview/src/main/java
+* src/.readme => cardview/src/main/resources/.readme
Next Steps:
-----------
diff --git a/settings.gradle b/settings.gradle
index 0bf8c486e5..db61b58ddc 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -1,7 +1,8 @@
-include ':OsmAnd-java', ':eclipse-compile:design'
+include ':OsmAnd-java', ':eclipse-compile:design', ':cardview'
include ':OsmAnd'
include ':eclipse-compile:appcompat'
include ':plugins:OsmAnd-AddressPlugin'
include ':plugins:Osmand-ParkingPlugin'
include ':plugins:Osmand-Sherpafy'
include ':plugins:Osmand-SRTMPlugin'
+include ':cardview'