diff --git a/src/org/fox/ttrss/ArticleFragment.java b/src/org/fox/ttrss/ArticleFragment.java index 09bd0680..c3d83dd0 100644 --- a/src/org/fox/ttrss/ArticleFragment.java +++ b/src/org/fox/ttrss/ArticleFragment.java @@ -31,6 +31,7 @@ import android.view.View; import android.view.View.OnClickListener; import android.view.ViewGroup; import android.webkit.WebSettings; +import android.webkit.WebSettings.LayoutAlgorithm; import android.webkit.WebView; import android.widget.ArrayAdapter; import android.widget.Button; @@ -109,6 +110,8 @@ public class ArticleFragment extends Fragment { ws.setSupportZoom(true); ws.setBuiltInZoomControls(true); + web.getSettings().setLayoutAlgorithm(LayoutAlgorithm.SINGLE_COLUMN); + TypedValue tv = new TypedValue(); getActivity().getTheme().resolveAttribute(R.attr.linkColor, tv, true); @@ -124,7 +127,7 @@ public class ArticleFragment extends Fragment { } else { cssOverride = ""; } - + String hexColor = String.format("#%06X", (0xFFFFFF & tv.data)); cssOverride += " a:link {color: "+hexColor+";} a:visited { color: "+hexColor+";}"; @@ -160,12 +163,10 @@ public class ArticleFragment extends Fragment { "" + "" + "" + - //"" + "" + "" + "" + articleContent; diff --git a/src/org/fox/ttrss/offline/OfflineArticleFragment.java b/src/org/fox/ttrss/offline/OfflineArticleFragment.java index bfeb094c..ebe11fc8 100644 --- a/src/org/fox/ttrss/offline/OfflineArticleFragment.java +++ b/src/org/fox/ttrss/offline/OfflineArticleFragment.java @@ -27,6 +27,7 @@ import android.view.View; import android.view.ViewGroup; import android.webkit.WebSettings; import android.webkit.WebView; +import android.webkit.WebSettings.LayoutAlgorithm; import android.widget.TextView; public class OfflineArticleFragment extends Fragment { @@ -101,6 +102,8 @@ public class OfflineArticleFragment extends Fragment { WebSettings ws = web.getSettings(); ws.setSupportZoom(true); ws.setBuiltInZoomControls(true); + + web.getSettings().setLayoutAlgorithm(LayoutAlgorithm.SINGLE_COLUMN); TypedValue tv = new TypedValue(); getActivity().getTheme().resolveAttribute(R.attr.linkColor, tv, true); @@ -167,11 +170,9 @@ public class OfflineArticleFragment extends Fragment { "" + "" + "" + - //"" + "" + "" + "" + articleContent + "";