summaryrefslogtreecommitdiff
path: root/res/layout-sw600dp/article_fragment.xml
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-21 17:32:21 +0400
committerAndrew Dolgov <[email protected]>2013-04-21 17:32:21 +0400
commitf9889788fced67fe3c849eda7d40f460090e2020 (patch)
treeaad6a7c5f9ba8568171049bc7bd0d36d9d8677d2 /res/layout-sw600dp/article_fragment.xml
parent4aaaf59a416ea4672fa4d51d595638b88a5b577a (diff)
fix article layout when both author and comment link are visible
Diffstat (limited to 'res/layout-sw600dp/article_fragment.xml')
-rw-r--r--res/layout-sw600dp/article_fragment.xml44
1 files changed, 26 insertions, 18 deletions
diff --git a/res/layout-sw600dp/article_fragment.xml b/res/layout-sw600dp/article_fragment.xml
index bcbd74e7..7cde45f4 100644
--- a/res/layout-sw600dp/article_fragment.xml
+++ b/res/layout-sw600dp/article_fragment.xml
@@ -2,8 +2,8 @@
android:id="@+id/article_fragment"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
- android:orientation="vertical"
android:background="?articleBackground"
+ android:orientation="vertical"
android:padding="10sp" >
<org.fox.ttrss.TitleWebView
@@ -19,7 +19,7 @@
android:layout_weight="0"
android:orientation="vertical"
android:paddingBottom="4sp" >
-
+
<TextView
android:id="@+id/title"
android:layout_width="match_parent"
@@ -28,30 +28,37 @@
android:text="There are many variations of passages of Lorem Ipsum available"
android:textColor="?linkColor"
android:textSize="21sp" />
-
- <TextView
+
+ <LinearLayout
+ android:id="@+id/comments_and_author"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="horizontal" >
+
+ <TextView
+ android:id="@+id/comments"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:paddingBottom="2sp"
+ android:paddingTop="2sp"
+ android:text="24 comments"
+ android:textColor="?linkColor"
+ android:textSize="13sp" />
+
+ <TextView
android:id="@+id/author"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:ellipsize="end"
- android:singleLine="true"
android:gravity="right"
- android:textStyle="italic"
+ android:singleLine="true"
android:text="{Author}"
android:textColor="?headlineExcerptTextColor"
- android:textSize="13sp" />
-
- <TextView
- android:id="@+id/comments"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:paddingBottom="2sp"
- android:paddingTop="2sp"
- android:text="24 comments"
- android:textColor="?linkColor"
- android:textSize="13sp" />
+ android:textSize="13sp"
+ android:textStyle="italic" />
+ </LinearLayout>
<LinearLayout
android:layout_width="match_parent"
@@ -92,4 +99,5 @@
android:paddingTop="2dip" />
</LinearLayout>
</org.fox.ttrss.TitleWebView>
+
</LinearLayout> \ No newline at end of file