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: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
@ -29,29 +29,36 @@
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>

View File

@ -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,28 +28,34 @@
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"