142 lines
6.6 KiB
XML
142 lines
6.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:id="@+id/itemRootView"
|
|
android:paddingLeft="@dimen/dp10w"
|
|
android:paddingTop="@dimen/dp20w"
|
|
android:paddingRight="@dimen/dp10w"
|
|
android:clickable="true"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dp240w">
|
|
<RelativeLayout
|
|
android:clickable="false"
|
|
android:layout_width="@dimen/dp400w"
|
|
android:layout_height="@dimen/dp155w"
|
|
android:layout_alignParentBottom="true">
|
|
<View
|
|
android:background="@drawable/bg_ranking_20"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dp149w"
|
|
android:layout_alignParentBottom="true"/>
|
|
<androidx.cardview.widget.CardView
|
|
android:background="#ffffff"
|
|
android:clickable="true"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dp149w"
|
|
android:foreground="?android:attr/selectableItemBackground"
|
|
app:cardCornerRadius="@dimen/dp15w"
|
|
app:cardElevation="0dp">
|
|
<TextView
|
|
android:textSize="@dimen/dp16w"
|
|
android:textStyle="bold"
|
|
android:textColor="@color/color_community_title_text"
|
|
android:ellipsize="end"
|
|
android:layout_gravity="bottom"
|
|
android:id="@+id/tv_creativity_title"
|
|
android:paddingLeft="@dimen/dp25w"
|
|
android:paddingRight="@dimen/dp25w"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="@dimen/dp17w"
|
|
android:text="Get The Boot A Birds Eye Get The Boot A Birds Eye Get The Boot A Birds Eye Get The Boot A Birds Eye"
|
|
android:lines="2"/>
|
|
</androidx.cardview.widget.CardView>
|
|
</RelativeLayout>
|
|
<RelativeLayout
|
|
android:clickable="false"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dp140w"
|
|
android:layout_marginLeft="@dimen/dp14w"
|
|
android:layout_marginRight="@dimen/dp14w">
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/dp120w">
|
|
<androidx.cardview.widget.CardView
|
|
android:clickable="false"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:foreground="?android:attr/selectableItemBackground"
|
|
app:cardCornerRadius="@dimen/dp15w"
|
|
app:cardElevation="0dp">
|
|
<ImageView
|
|
android:layout_gravity="center"
|
|
android:background="@drawable/community_img"
|
|
android:layout_width="@dimen/dp50w"
|
|
android:layout_height="@dimen/dp50w"/>
|
|
<ImageView
|
|
android:id="@+id/im_creativity_image"
|
|
android:background="#55eeeeee"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:scaleType="centerCrop"/>
|
|
<ImageView
|
|
android:layout_gravity="center"
|
|
android:id="@+id/im_creativity_video"
|
|
android:background="@drawable/icon_play"
|
|
android:visibility="gone"
|
|
android:layout_width="@dimen/dp35w"
|
|
android:layout_height="@dimen/dp35w"/>
|
|
<LinearLayout
|
|
android:gravity="center"
|
|
android:layout_gravity="bottom|right"
|
|
android:orientation="horizontal"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="30dp"
|
|
android:layout_marginRight="@dimen/dp_5">
|
|
<TextView
|
|
android:textSize="@dimen/text_size_14"
|
|
android:textColor="@color/bg_white"
|
|
android:gravity="center_vertical"
|
|
android:id="@+id/tv_comment"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:layout_marginRight="@dimen/dp_10"
|
|
android:text="22"
|
|
android:drawableLeft="@drawable/ic_menu_comment"
|
|
android:drawablePadding="@dimen/dp_5"/>
|
|
<TextView
|
|
android:textSize="@dimen/text_size_12"
|
|
android:textColor="@color/bg_white"
|
|
android:gravity="center_vertical"
|
|
android:id="@+id/tv_praise"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="match_parent"
|
|
android:text="20"
|
|
android:drawableLeft="@drawable/ic_menu_praise"
|
|
android:drawablePadding="@dimen/dp_5"/>
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
</FrameLayout>
|
|
<ImageView
|
|
android:id="@+id/im_comm_head"
|
|
android:background="@drawable/shape_circle_white"
|
|
android:paddingLeft="@dimen/dp2w"
|
|
android:paddingTop="@dimen/dp2w"
|
|
android:paddingRight="@dimen/dp2w"
|
|
android:paddingBottom="@dimen/dp4w"
|
|
android:layout_width="@dimen/dp40w"
|
|
android:layout_height="@dimen/dp40w"
|
|
android:layout_marginLeft="@dimen/dp10w"
|
|
android:src="@drawable/tab_base_user_default"
|
|
android:layout_alignParentBottom="true"/>
|
|
<TextView
|
|
android:textSize="@dimen/dp14w"
|
|
android:textStyle="bold"
|
|
android:textColor="@color/color_community_title_text"
|
|
android:ellipsize="end"
|
|
android:id="@+id/tv_creativity_name"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/dp6w"
|
|
android:text="Marry"
|
|
android:lines="1"
|
|
android:maxEms="16"
|
|
android:maxLength="16"
|
|
android:layout_toRightOf="@+id/im_comm_head"
|
|
android:layout_alignParentBottom="true"/>
|
|
</RelativeLayout>
|
|
<View
|
|
android:id="@+id/view_onclick"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"/>
|
|
</RelativeLayout>
|