Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <android.support.v7.widget.CardView
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:card_view="http://schemas.android.com/apk/res-auto"
- android:id="@+id/visit_note_timeline"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="10dp"
- card_view:cardCornerRadius="2dp"
- card_view:cardElevation="@dimen/cardview_default_elevation"
- card_view:cardBackgroundColor="@android:color/black"
- card_view:cardUseCompatPadding="true">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <ImageView
- android:id="@+id/more_button"
- android:layout_width="30dp"
- android:layout_height="30dp"
- android:src="@drawable/ic_more_vert_black_24dp"
- android:layout_alignParentTop="true"
- android:layout_alignParentRight="true"
- android:layout_margin="@dimen/card_view_elements_margin"
- android:onClick="moreButtonClicked" />
- <ImageView
- android:id="@+id/profpic"
- android:layout_width="50dp"
- android:layout_height="50dp"
- android:layout_marginTop="@dimen/card_view_elements_margin"
- android:layout_marginLeft="@dimen/card_view_elements_margin"
- android:src="@drawable/profile_img"/>
- <TextView
- android:id="@+id/username"
- android:text="katnisseverdeen"
- android:textSize="@dimen/primary_font_size"
- android:textStyle="bold"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_toRightOf="@+id/profpic"
- android:textColor="@android:color/white"
- android:layout_marginTop="@dimen/card_view_elements_margin"
- android:layout_marginLeft="@dimen/card_view_elements_margin"/>
- <TextView
- android:id="@+id/vn_timestamp"
- android:text="less than 1 min ago"
- android:textSize="@dimen/tertiary_font_size"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_toRightOf="@+id/profpic"
- android:layout_below="@id/username"
- android:textColor="@android:color/darker_gray"
- android:layout_marginLeft="@dimen/card_view_elements_margin"/>
- <TextView
- android:id="@+id/caption_text"
- android:layout_below="@+id/profpic"
- android:text="Two Hands Full"
- android:textSize="@dimen/primary_font_size"
- android:textStyle="bold"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textColor="@android:color/white"
- android:layout_marginTop="@dimen/card_view_elements_margin"
- android:layout_marginLeft="@dimen/card_view_elements_margin"/>
- <TextView
- android:id="@+id/caption_text_2"
- android:layout_below="@id/caption_text"
- android:text="Jl. Sukajadi No 25"
- android:textSize="@dimen/tertiary_font_size"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:textColor="@android:color/darker_gray"
- android:layout_marginLeft="@dimen/card_view_elements_margin"/>
- <include layout="@layout/ratings_preview"
- android:layout_height="wrap_content"
- android:layout_width="wrap_content"
- android:layout_alignParentRight="true"
- android:layout_marginRight="@dimen/card_view_elements_margin"
- android:layout_alignBottom="@id/caption_text_2"/>
- <ImageView
- android:id="@+id/food_pic"
- android:layout_width="match_parent"
- android:layout_height="200dp"
- android:layout_marginTop="@dimen/card_view_elements_margin"
- android:scaleType="centerCrop"
- android:layout_below="@id/caption_text_2"
- android:src="@drawable/food"
- android:contentDescription="Dummy image"
- android:adjustViewBounds="true"/>
- <TextView
- android:id="@+id/short_review_text"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:textSize="@dimen/secondary_font_size"
- android:text="@string/lorem_ipsum"
- android:textColor="@android:color/white"
- android:layout_below="@id/food_pic"
- android:layout_centerHorizontal="true"
- android:layout_margin="@dimen/card_view_elements_margin"/>
- <TextView
- android:id="@+id/likecomment"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_below="@id/short_review_text"
- android:textColor="@android:color/darker_gray"
- android:textSize="@dimen/tertiary_font_size"
- android:text="10 comments - 10 likes"
- android:layout_marginLeft="@dimen/card_view_elements_margin"
- android:textStyle="bold"/>
- <TextView
- android:id="@+id/readmore"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_below="@id/likecomment"
- android:textColor="@android:color/darker_gray"
- android:text="read more"
- android:layout_marginRight="@dimen/card_view_elements_margin"
- android:layout_marginBottom="@dimen/card_view_elements_margin"
- android:layout_alignParentRight="true"
- android:textSize="@dimen/tertiary_font_size"
- android:textStyle="bold"/>
- </RelativeLayout>
- </android.support.v7.widget.CardView>
Advertisement
Add Comment
Please, Sign In to add comment