fix article layout when both author and comment link are visible

This commit is contained in:
Andrew Dolgov 2013-04-21 17:32:21 +04:00
parent 4aaaf59a41
commit f9889788fc
2 changed files with 46 additions and 32 deletions

View File

@ -2,8 +2,8 @@
android:id="@+id/article_fragment" android:id="@+id/article_fragment"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:layout_height="fill_parent"
android:orientation="vertical"
android:background="?articleBackground" android:background="?articleBackground"
android:orientation="vertical"
android:padding="10sp" > android:padding="10sp" >
<org.fox.ttrss.TitleWebView <org.fox.ttrss.TitleWebView
@ -29,18 +29,11 @@
android:textColor="?linkColor" android:textColor="?linkColor"
android:textSize="21sp" /> android:textSize="21sp" />
<TextView <LinearLayout
android:id="@+id/author" android:id="@+id/comments_and_author"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:layout_weight="1" android:orientation="horizontal" >
android:ellipsize="end"
android:singleLine="true"
android:gravity="right"
android:textStyle="italic"
android:text="{Author}"
android:textColor="?headlineExcerptTextColor"
android:textSize="13sp" />
<TextView <TextView
android:id="@+id/comments" android:id="@+id/comments"
@ -53,6 +46,20 @@
android:textColor="?linkColor" android:textColor="?linkColor"
android:textSize="13sp" /> 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:gravity="right"
android:singleLine="true"
android:text="{Author}"
android:textColor="?headlineExcerptTextColor"
android:textSize="13sp"
android:textStyle="italic" />
</LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
@ -92,4 +99,5 @@
android:paddingTop="2dip" /> android:paddingTop="2dip" />
</LinearLayout> </LinearLayout>
</org.fox.ttrss.TitleWebView> </org.fox.ttrss.TitleWebView>
</LinearLayout> </LinearLayout>

View File

@ -2,8 +2,8 @@
android:id="@+id/article_fragment" android:id="@+id/article_fragment"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:layout_height="fill_parent"
android:orientation="vertical"
android:background="?articleBackground" android:background="?articleBackground"
android:orientation="vertical"
android:padding="5sp" > android:padding="5sp" >
<org.fox.ttrss.TitleWebView <org.fox.ttrss.TitleWebView
@ -28,6 +28,12 @@
android:textColor="?linkColor" android:textColor="?linkColor"
android:textSize="16sp" /> android:textSize="16sp" />
<LinearLayout
android:id="@+id/comments_and_author"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >
<TextView <TextView
android:id="@+id/comments" android:id="@+id/comments"
android:layout_width="match_parent" android:layout_width="match_parent"
@ -43,13 +49,13 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:ellipsize="end" android:ellipsize="end"
android:singleLine="true"
android:gravity="right" android:gravity="right"
android:textStyle="italic" android:singleLine="true"
android:text="{Author}" android:text="{Author}"
android:textColor="?headlineExcerptTextColor" android:textColor="?headlineExcerptTextColor"
android:textSize="13sp" /> android:textSize="13sp"
android:textStyle="italic" />
</LinearLayout>
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"