diff --git a/OsmAnd/res/layout/gpx_description_card.xml b/OsmAnd/res/layout/gpx_description_card.xml index 9c6ba33729..d8ea9fab7a 100644 --- a/OsmAnd/res/layout/gpx_description_card.xml +++ b/OsmAnd/res/layout/gpx_description_card.xml @@ -7,9 +7,9 @@ android:orientation="vertical"> diff --git a/OsmAnd/res/layout/wikivoyage_article_card.xml b/OsmAnd/res/layout/wikivoyage_article_card.xml index fa8d3a31be..0a5789da93 100644 --- a/OsmAnd/res/layout/wikivoyage_article_card.xml +++ b/OsmAnd/res/layout/wikivoyage_article_card.xml @@ -8,6 +8,7 @@ android:orientation="vertical"> diff --git a/OsmAnd/src/net/osmand/plus/myplaces/GpxDescriptionDialogFragment.java b/OsmAnd/src/net/osmand/plus/myplaces/GpxDescriptionDialogFragment.java index 109b206eeb..7f94b7b2ac 100644 --- a/OsmAnd/src/net/osmand/plus/myplaces/GpxDescriptionDialogFragment.java +++ b/OsmAnd/src/net/osmand/plus/myplaces/GpxDescriptionDialogFragment.java @@ -48,6 +48,7 @@ public class GpxDescriptionDialogFragment extends BaseOsmAndDialogFragment { WebView webView = new WebView(ctx); webView.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)); + webView.getSettings().setTextZoom((int) (getResources().getConfiguration().fontScale * 100f)); Bundle args = getArguments(); if (args != null) { String content = args.getString(CONTENT_KEY); diff --git a/OsmAnd/src/net/osmand/plus/myplaces/TrackActivityFragmentAdapter.java b/OsmAnd/src/net/osmand/plus/myplaces/TrackActivityFragmentAdapter.java index 193a643fa9..04b3aa1217 100644 --- a/OsmAnd/src/net/osmand/plus/myplaces/TrackActivityFragmentAdapter.java +++ b/OsmAnd/src/net/osmand/plus/myplaces/TrackActivityFragmentAdapter.java @@ -483,6 +483,8 @@ public class TrackActivityFragmentAdapter implements TrackBitmapDrawerListener { private View createTravelArticleCard(final Context context, @NonNull final TravelArticle article) { View card = LayoutInflater.from(context).inflate(R.layout.wikivoyage_article_card, null); + card.findViewById(R.id.background_view).setBackgroundColor(ContextCompat.getColor(context, + app.getSettings().isLightContent() ? R.color.list_item_light : R.color.list_item_dark)); ((TextView) card.findViewById(R.id.title)).setText(article.getTitle()); ((TextView) card.findViewById(R.id.content)).setText(WikiArticleHelper.getPartialContent(article.getContent())); ((TextView) card.findViewById(R.id.part_of)).setText(article.getGeoDescription()); @@ -527,6 +529,8 @@ public class TrackActivityFragmentAdapter implements TrackBitmapDrawerListener { String desc = Html.fromHtml(descHtml).toString().trim(); if (!TextUtils.isEmpty(desc)) { View card = LayoutInflater.from(context).inflate(R.layout.gpx_description_card, null); + card.findViewById(R.id.background_view).setBackgroundColor(ContextCompat.getColor(context, + app.getSettings().isLightContent() ? R.color.list_item_light : R.color.list_item_dark)); ((TextView) card.findViewById(R.id.description)).setText(desc); TextView readBtn = (TextView) card.findViewById(R.id.read_button); readBtn.setCompoundDrawablesWithIntrinsicBounds(getReadIcon(), null, null, null);