aboutsummaryrefslogtreecommitdiff
path: root/WordPress/src/main/res/layout/reader_listitem_blog.xml
diff options
context:
space:
mode:
Diffstat (limited to 'WordPress/src/main/res/layout/reader_listitem_blog.xml')
-rw-r--r--WordPress/src/main/res/layout/reader_listitem_blog.xml65
1 files changed, 65 insertions, 0 deletions
diff --git a/WordPress/src/main/res/layout/reader_listitem_blog.xml b/WordPress/src/main/res/layout/reader_listitem_blog.xml
new file mode 100644
index 000000000..3f3779cb2
--- /dev/null
+++ b/WordPress/src/main/res/layout/reader_listitem_blog.xml
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!---
+ list item which shows a recommended or followed blog - see ReaderBlogAdapter
+-->
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="?android:selectableItemBackground"
+ android:gravity="center_vertical"
+ android:orientation="horizontal"
+ android:paddingBottom="@dimen/margin_large"
+ android:paddingLeft="@dimen/margin_extra_large"
+ android:paddingRight="@dimen/margin_extra_large"
+ android:paddingTop="@dimen/margin_large">
+
+ <org.wordpress.android.widgets.WPNetworkImageView
+ android:id="@+id/image_blog"
+ android:layout_width="@dimen/avatar_sz_medium"
+ android:layout_height="@dimen/avatar_sz_medium"
+ android:layout_marginRight="@dimen/margin_large"
+ android:layout_weight="0" />
+
+ <LinearLayout
+ android:id="@+id/layout_content"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:orientation="vertical">
+
+ <org.wordpress.android.widgets.WPTextView
+ android:id="@+id/text_title"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginRight="@dimen/margin_medium"
+ android:ellipsize="end"
+ android:maxLines="1"
+ android:textColor="@color/grey_dark"
+ android:textSize="@dimen/text_sz_medium"
+ tools:text="text_title" />
+
+ <org.wordpress.android.widgets.WPTextView
+ android:id="@+id/text_url"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ellipsize="end"
+ android:maxLines="1"
+ android:textColor="@color/reader_hyperlink"
+ android:textSize="@dimen/text_sz_small"
+ tools:text="text_url" />
+
+ <org.wordpress.android.widgets.WPTextView
+ android:id="@+id/text_description"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:ellipsize="end"
+ android:maxLines="2"
+ android:textColor="@color/grey_darken_10"
+ android:textSize="@dimen/text_sz_small"
+ tools:text="text_description" />
+
+ </LinearLayout>
+
+</LinearLayout> \ No newline at end of file