diff --git a/OsmAnd/res/layout/wikipedia_dialog_fragment.xml b/OsmAnd/res/layout/wikipedia_dialog_fragment.xml
index 6164f93d9f..ea3267d555 100644
--- a/OsmAnd/res/layout/wikipedia_dialog_fragment.xml
+++ b/OsmAnd/res/layout/wikipedia_dialog_fragment.xml
@@ -1,9 +1,13 @@
-
+
+
+ tools:src="@drawable/ic_arrow_back"
+ android:contentDescription="@string/shared_string_back" />
-
+ android:layout_height="0dp"
+ android:layout_weight="1">
-
+
+
-
+ android:layout_gravity="bottom|center_horizontal"
+ android:layout_margin="@dimen/content_padding"
+ android:gravity="center_vertical"
+ android:text="@string/read_full_article"
+ android:textAllCaps="true"
+ osmand:typeface="@string/font_roboto_medium"
+ tools:background="@drawable/bt_round_long_night"
+ tools:textColor="?attr/ctx_menu_controller_text_color" />
-
+
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/WikipediaDialogFragment.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/WikipediaDialogFragment.java
index 6a1b3958b7..04a30c580f 100644
--- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/WikipediaDialogFragment.java
+++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/WikipediaDialogFragment.java
@@ -1,53 +1,60 @@
package net.osmand.plus.mapcontextmenu;
+import android.annotation.SuppressLint;
import android.app.Dialog;
import android.content.Context;
-import android.content.Intent;
import android.content.res.ColorStateList;
import android.graphics.drawable.Drawable;
import android.net.Uri;
-import android.os.Build;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.customtabs.CustomTabsIntent;
import android.support.design.widget.AppBarLayout;
-import android.support.design.widget.CoordinatorLayout;
import android.support.v4.app.DialogFragment;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.PopupMenu;
-import android.text.Html;
-import android.text.Spannable;
-import android.text.SpannableString;
import android.text.TextUtils;
-import android.text.method.LinkMovementMethod;
-import android.text.style.RelativeSizeSpan;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
+import android.webkit.WebSettings;
+import android.webkit.WebView;
import android.widget.ImageButton;
import android.widget.TextView;
import net.osmand.AndroidUtils;
+import net.osmand.IndexConstants;
import net.osmand.data.Amenity;
import net.osmand.plus.OsmandApplication;
import net.osmand.plus.R;
import net.osmand.plus.helpers.FileNameTranslationHelper;
import net.osmand.util.Algorithms;
+import java.io.File;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import java.util.TreeSet;
+
public class WikipediaDialogFragment extends DialogFragment {
public static final String TAG = "WikipediaDialogFragment";
+ private static final String HEADER_INNER = "
\n" +
+ "\n" +
+ "\n" +
+ "\n" +
+ "";
+ private static final String FOOTER_INNER = "