summaryrefslogtreecommitdiff
path: root/res/layout/article_fragment.xml
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-02-06 15:07:13 +0300
committerAndrew Dolgov <[email protected]>2012-02-06 15:07:13 +0300
commit1f12ff12cd4eed0200dcc2ecb92850e67c4b9b00 (patch)
treef497932b6a04ba380a42a28712ae3532b14deffa /res/layout/article_fragment.xml
parent36289af071a4cff64852d32c53e94b727661f757 (diff)
tweak article_fragment xml
Diffstat (limited to 'res/layout/article_fragment.xml')
-rw-r--r--res/layout/article_fragment.xml91
1 files changed, 39 insertions, 52 deletions
diff --git a/res/layout/article_fragment.xml b/res/layout/article_fragment.xml
index 7a202648..ea0776c9 100644
--- a/res/layout/article_fragment.xml
+++ b/res/layout/article_fragment.xml
@@ -3,7 +3,7 @@
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal" >
-
+
<ImageView
android:id="@+id/splitter_vertical"
android:layout_width="wrap_content"
@@ -12,9 +12,8 @@
android:background="?articleDivider"
android:clickable="true"
android:paddingLeft="4dip" >
-
</ImageView>
-
+
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
@@ -23,7 +22,7 @@
android:layout_height="match_parent"
android:layout_weight="1"
android:orientation="vertical" >
-
+
<ImageView
android:id="@+id/splitter_horizontal"
android:layout_width="match_parent"
@@ -33,63 +32,51 @@
android:clickable="true"
android:paddingTop="4dip" />
- <LinearLayout
- android:id="@+id/linearLayout5"
- android:padding="5dp"
+ <RelativeLayout
+ android:id="@+id/article_header"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:gravity="center_vertical"
android:layout_weight="0"
- android:layout_gravity="center_vertical" >
+ android:background="?articleHeader"
+ android:orientation="vertical"
+ android:paddingLeft="5dp"
+ android:paddingRight="5dp" >
- <LinearLayout
- android:paddingLeft="5dp"
- android:paddingRight="5dp"
- android:id="@+id/article_header"
- android:layout_width="0dp"
+ <TextView
+ 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:background="?articleHeader"
- android:orientation="vertical"
- >
-
- <TextView
- android:id="@+id/title"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:text="There are many variations of passages of Lorem Ipsum available"
- />
+ android:text="There are many variations of passages of Lorem Ipsum available" />
- <LinearLayout
- android:id="@+id/linearLayout3"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1" >
-
- <TextView
- android:id="@+id/tags"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:singleLine="true"
- android:ellipsize="end"
- android:text="{TAGS}"
- android:textSize="10sp" />
+ <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/date"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:gravity="right"
- android:layout_weight="1"
- android:text="{DATE}"
- android:textSize="10sp"
- android:textAppearance="?android:attr/textAppearanceSmall" />
- </LinearLayout>
- </LinearLayout>
+ <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" />
- </LinearLayout>
+ </RelativeLayout>
<ImageView
android:layout_width="match_parent"