aboutsummaryrefslogtreecommitdiff
path: root/WordPress/src/main/res/layout/post_cardview.xml
diff options
context:
space:
mode:
Diffstat (limited to 'WordPress/src/main/res/layout/post_cardview.xml')
-rw-r--r--WordPress/src/main/res/layout/post_cardview.xml164
1 files changed, 164 insertions, 0 deletions
diff --git a/WordPress/src/main/res/layout/post_cardview.xml b/WordPress/src/main/res/layout/post_cardview.xml
new file mode 100644
index 000000000..f9007adff
--- /dev/null
+++ b/WordPress/src/main/res/layout/post_cardview.xml
@@ -0,0 +1,164 @@
+<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:card_view="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ xmlns:wp="http://schemas.android.com/apk/res-auto"
+ android:id="@+id/card_view"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:stateListAnimator="@anim/pressed_card"
+ card_view:cardBackgroundColor="@color/white"
+ card_view:cardCornerRadius="@dimen/cardview_default_radius"
+ card_view:cardElevation="@dimen/card_elevation"
+ tools:targetApi="LOLLIPOP">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="?android:selectableItemBackground"
+ android:orientation="vertical">
+
+ <org.wordpress.android.widgets.WPNetworkImageView
+ android:id="@+id/image_featured"
+ android:layout_width="match_parent"
+ android:layout_height="@dimen/postlist_featured_image_height"
+ android:layout_below="@+id/layout_post_header"
+ android:scaleType="centerCrop"
+ android:visibility="gone"
+ tools:visibility="visible" />
+
+ <org.wordpress.android.widgets.WPTextView
+ android:id="@+id/text_title"
+ style="@style/ReaderTextView.Post.Title"
+ android:layout_marginLeft="@dimen/margin_extra_large"
+ android:layout_marginRight="@dimen/margin_extra_large"
+ android:layout_marginTop="@dimen/margin_extra_large"
+ tools:text="text_title" />
+
+ <org.wordpress.android.widgets.WPTextView
+ android:id="@+id/text_excerpt"
+ style="@style/ReaderTextView.Post.Excerpt"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="@dimen/margin_extra_large"
+ android:layout_marginRight="@dimen/margin_extra_large"
+ android:layout_marginTop="@dimen/margin_medium"
+ android:maxLines="4"
+ tools:text="text_excerpt" />
+
+ <org.wordpress.android.widgets.WPTextView
+ android:id="@+id/text_date"
+ style="@style/ReaderTextView.Date"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="@dimen/margin_extra_large"
+ android:layout_marginRight="@dimen/margin_extra_large"
+ android:layout_marginTop="@dimen/margin_medium"
+ tools:text="text_date" />
+
+ <org.wordpress.android.widgets.WPTextView
+ android:id="@+id/text_status"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="@dimen/margin_extra_large"
+ android:layout_marginRight="@dimen/margin_extra_large"
+ android:layout_marginTop="@dimen/margin_medium"
+ android:gravity="center_vertical"
+ android:textColor="@color/grey_darken_10"
+ android:textSize="@dimen/text_sz_small"
+ android:visibility="gone"
+ tools:drawableLeft="@drawable/noticon_scheduled"
+ tools:text="text_status"
+ tools:visibility="visible" />
+
+ <FrameLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginTop="@dimen/margin_large"
+ android:background="@color/grey_light">
+
+ <LinearLayout
+ android:id="@+id/layout_buttons"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:clickable="false"
+ android:orientation="horizontal">
+
+ <org.wordpress.android.widgets.PostListButton
+ android:id="@+id/btn_edit"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:gravity="center"
+ wp:wpPostButtonType="edit" />
+
+ <org.wordpress.android.widgets.PostListButton
+ android:id="@+id/btn_view"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:gravity="center"
+ wp:wpPostButtonType="view" />
+
+ <org.wordpress.android.widgets.PostListButton
+ android:id="@+id/btn_publish"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:gravity="center"
+ wp:wpPostButtonType="publish" />
+
+ <org.wordpress.android.widgets.PostListButton
+ android:id="@+id/btn_stats"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:gravity="center"
+ android:visibility="gone"
+ tools:visibility="visible"
+ wp:wpPostButtonType="stats" />
+
+ <org.wordpress.android.widgets.PostListButton
+ android:id="@+id/btn_trash"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:gravity="center"
+ android:visibility="gone"
+ tools:visibility="visible"
+ wp:wpPostButtonType="trash" />
+
+ <org.wordpress.android.widgets.PostListButton
+ android:id="@+id/btn_more"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:gravity="center"
+ wp:wpPostButtonType="more" />
+
+ <org.wordpress.android.widgets.PostListButton
+ android:id="@+id/btn_back"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:gravity="center"
+ wp:wpPostButtonType="back" />
+
+ </LinearLayout>
+ </FrameLayout>
+ </LinearLayout>
+
+ <RelativeLayout
+ android:id="@+id/disabled_overlay"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:background="@color/translucent_white"
+ android:clickable="true"
+ android:focusable="true">
+
+ <ProgressBar
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_centerHorizontal="true"
+ android:layout_centerVertical="true"
+ android:indeterminate="true"/>
+ </RelativeLayout>
+</android.support.v7.widget.CardView> \ No newline at end of file