From 6086a3e7e18d60b02a1725dbac207313e5d9bc89 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sun, 15 Apr 2018 15:07:08 +0200 Subject: [PATCH] Update css & contents bottom --- .../src/net/osmand/IndexConstants.java | 2 ++ OsmAnd/assets/article_style.css | 4 +-- .../fragment_wikivoyage_article_dialog.xml | 29 +++++++++++++++-- OsmAnd/src/net/osmand/plus/GPXUtilities.java | 8 +++-- .../plus/myplaces/TrackPointFragment.java | 14 +++++--- .../WikivoyageArticleDialogFragment.java | 32 +++++++++++++++++-- .../wikivoyage/data/WikivoyageDbHelper.java | 6 ++-- 7 files changed, 79 insertions(+), 16 deletions(-) diff --git a/OsmAnd-java/src/net/osmand/IndexConstants.java b/OsmAnd-java/src/net/osmand/IndexConstants.java index d6834bcf4d..a829bbc47f 100644 --- a/OsmAnd-java/src/net/osmand/IndexConstants.java +++ b/OsmAnd-java/src/net/osmand/IndexConstants.java @@ -52,6 +52,7 @@ public class IndexConstants { public static final String GPX_INDEX_DIR = "tracks/"; public static final String GPX_RECORDED_INDEX_DIR = GPX_INDEX_DIR + "rec/"; public static final String GPX_IMPORT_DIR = GPX_INDEX_DIR + "import/"; + public static final String TILES_INDEX_DIR= "tiles/"; public static final String LIVE_INDEX_DIR= "live/"; public static final String TOURS_INDEX_DIR= "tours/"; @@ -59,6 +60,7 @@ public class IndexConstants { public static final String ROADS_INDEX_DIR = "roads/"; //$NON-NLS-1$ public static final String WIKI_INDEX_DIR = "wiki/"; //$NON-NLS-1$ public static final String WIKIVOYAGE_INDEX_DIR = "travel/"; + public static final String GPX_TRAVEL_DIR = GPX_INDEX_DIR + WIKIVOYAGE_INDEX_DIR; public static final String AV_INDEX_DIR = "avnotes/"; //$NON-NLS-1$ public static final String FONT_INDEX_DIR = "fonts/"; //$NON-NLS-1$ public static final String VOICE_INDEX_DIR = "voice/"; //$NON-NLS-1$ diff --git a/OsmAnd/assets/article_style.css b/OsmAnd/assets/article_style.css index f7edecd08c..f8df7b24ab 100755 --- a/OsmAnd/assets/article_style.css +++ b/OsmAnd/assets/article_style.css @@ -33,11 +33,10 @@ h1 { font-size: 2em; color: #212121; font-family: serif; - font-weight: bold; letter-spacing: 0.03em; word-wrap: break-word; padding-top: 5%; - + font-weight: normal; } h2 { @@ -47,6 +46,7 @@ h2 { word-wrap: break-word; margin-top: 3%; margin-bottom: 3%; + font-weight: normal; } h2.active:after { diff --git a/OsmAnd/res/layout/fragment_wikivoyage_article_dialog.xml b/OsmAnd/res/layout/fragment_wikivoyage_article_dialog.xml index 3d7f1245da..23fbc9ea2b 100644 --- a/OsmAnd/res/layout/fragment_wikivoyage_article_dialog.xml +++ b/OsmAnd/res/layout/fragment_wikivoyage_article_dialog.xml @@ -87,7 +87,7 @@ android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_gravity="center_vertical" - android:layout_weight="0.5" + android:layout_weight="0.33" android:background="?attr/selectableItemBackground" android:drawablePadding="@dimen/bottom_sheet_content_padding_small" android:ellipsize="end" @@ -105,13 +105,38 @@ tools:drawableLeft="@drawable/ic_action_list_header" tools:drawableTint="?attr/wikivoyage_active_color" tools:ignore="UnusedAttribute" /> + + +