From bb0438358d1c9ed5e8250ec961124f18e309b4c3 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 30 Nov 2011 12:02:26 +0300 Subject: [PATCH] allow longer titles in article view --- res/layout/article_fragment.xml | 4 +--- src/org/fox/ttrss/ArticleFragment.java | 10 +++++++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/res/layout/article_fragment.xml b/res/layout/article_fragment.xml index 679d73df..62f15143 100644 --- a/res/layout/article_fragment.xml +++ b/res/layout/article_fragment.xml @@ -65,9 +65,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" - android:ellipsize="end" - android:singleLine="true" - android:text="{Title}" + android:text="There are many variations of passages of Lorem Ipsum available" /> 200) + titleStr = m_article.title.substring(0, 200) + "..."; + else + titleStr = m_article.title; + title.setMovementMethod(LinkMovementMethod.getInstance()); - title.setText(Html.fromHtml("" + m_article.title + "")); + title.setText(Html.fromHtml("" + titleStr + "")); } WebView web = (WebView)view.findViewById(R.id.content);