summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--res/layout/article_fragment.xml4
-rw-r--r--src/org/fox/ttrss/ArticleFragment.java10
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"
/>
<LinearLayout
diff --git a/src/org/fox/ttrss/ArticleFragment.java b/src/org/fox/ttrss/ArticleFragment.java
index a2146838..636d47db 100644
--- a/src/org/fox/ttrss/ArticleFragment.java
+++ b/src/org/fox/ttrss/ArticleFragment.java
@@ -83,8 +83,16 @@ public class ArticleFragment extends Fragment implements OnClickListener {
TextView title = (TextView)view.findViewById(R.id.title);
if (title != null) {
+
+ String titleStr;
+
+ if (m_article.title.length() > 200)
+ titleStr = m_article.title.substring(0, 200) + "...";
+ else
+ titleStr = m_article.title;
+
title.setMovementMethod(LinkMovementMethod.getInstance());
- title.setText(Html.fromHtml("<a href=\""+m_article.link.replace("\"", "\\\"")+"\">" + m_article.title + "</a>"));
+ title.setText(Html.fromHtml("<a href=\""+m_article.link.replace("\"", "\\\"")+"\">" + titleStr + "</a>"));
}
WebView web = (WebView)view.findViewById(R.id.content);