diff options
author | Andrew Dolgov <[email protected]> | 2013-04-21 17:32:21 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-04-21 17:32:21 +0400 |
commit | f9889788fced67fe3c849eda7d40f460090e2020 (patch) | |
tree | aad6a7c5f9ba8568171049bc7bd0d36d9d8677d2 /res/layout/article_fragment.xml | |
parent | 4aaaf59a416ea4672fa4d51d595638b88a5b577a (diff) |
fix article layout when both author and comment link are visible
Diffstat (limited to 'res/layout/article_fragment.xml')
-rw-r--r-- | res/layout/article_fragment.xml | 34 |
1 files changed, 20 insertions, 14 deletions
diff --git a/res/layout/article_fragment.xml b/res/layout/article_fragment.xml index abf84f27..aa9efa25 100644 --- a/res/layout/article_fragment.xml +++ b/res/layout/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="5sp" > <org.fox.ttrss.TitleWebView @@ -28,29 +28,35 @@ android:textColor="?linkColor" android:textSize="16sp" /> - <TextView - android:id="@+id/comments" + <LinearLayout + android:id="@+id/comments_and_author" android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_weight="1" - android:text="24 comments" - android:textColor="?linkColor" - android:textSize="13sp" /> + android:layout_height="match_parent" + android:orientation="horizontal" > - <TextView + <TextView + android:id="@+id/comments" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + 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" /> - - + android:textSize="13sp" + android:textStyle="italic" /> + </LinearLayout> + <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" |