summaryrefslogtreecommitdiff
path: root/res/layout/article_fragment.xml
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-05-02 09:42:41 +0400
committerAndrew Dolgov <[email protected]>2012-05-02 09:42:41 +0400
commit5ff5f845629f463e986f233617d1a318d90948cc (patch)
tree92126ed5e9f77cdfaf6e3f9de9995f431e78d226 /res/layout/article_fragment.xml
parent835ec518119d6cd1190d13c730b43893ec13da44 (diff)
article layout: do not use relative for header
Diffstat (limited to 'res/layout/article_fragment.xml')
-rw-r--r--res/layout/article_fragment.xml52
1 files changed, 25 insertions, 27 deletions
diff --git a/res/layout/article_fragment.xml b/res/layout/article_fragment.xml
index 4b2b3936..0dfd29f2 100644
--- a/res/layout/article_fragment.xml
+++ b/res/layout/article_fragment.xml
@@ -32,7 +32,7 @@
android:clickable="true"
android:paddingTop="4dip" />
- <RelativeLayout
+ <LinearLayout
android:id="@+id/article_header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
@@ -46,37 +46,35 @@
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:layout_above="@+id/linearLayout3"
- android:layout_alignParentLeft="true"
- android:layout_alignParentTop="true"
android:layout_weight="1"
android:text="There are many variations of passages of Lorem Ipsum available"
android:textSize="15sp" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" >
- <TextView
- android:id="@+id/tags"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignLeft="@+id/title"
- android:layout_below="@+id/title"
- android:layout_weight="1"
- android:ellipsize="end"
- android:singleLine="true"
- android:text="{TAGS}"
- android:textSize="10sp" />
+ <TextView
+ android:id="@+id/tags"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:ellipsize="end"
+ android:singleLine="true"
+ android:text="{TAGS}"
+ android:textSize="10sp" />
- <TextView
- android:id="@+id/date"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentRight="true"
- android:layout_below="@+id/title"
- android:layout_weight="1"
- android:gravity="right"
- android:text="{DATE}"
- android:textAppearance="?android:attr/textAppearanceSmall"
- android:textSize="10sp" />
- </RelativeLayout>
+ <TextView
+ android:id="@+id/date"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:gravity="right"
+ android:text="{DATE}"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:textSize="10sp" />
+ </LinearLayout>
+ </LinearLayout>
<ImageView
android:layout_width="match_parent"