142 lines
7.3 KiB
XML
142 lines
7.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:background="@drawable/bg_community_diy"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content">
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/xf_item"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/user_center_publish_item_height"
|
|
app:cardCornerRadius="@dimen/item_corner_radius"
|
|
app:cardElevation="0dp">
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
<LinearLayout
|
|
android:orientation="vertical"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/cd_small"
|
|
android:clickable="true"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/user_center_publish_item_logo_height"
|
|
app:cardCornerRadius="0dp"
|
|
app:cardElevation="0dp">
|
|
<ImageView
|
|
android:id="@+id/img_first_frame"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:scaleType="centerCrop"/>
|
|
<ImageView
|
|
android:layout_gravity="center"
|
|
android:id="@+id/img_play"
|
|
android:background="@mipmap/icon_play"
|
|
android:layout_width="@dimen/comm_item_play"
|
|
android:layout_height="@dimen/comm_item_play"
|
|
android:layout_centerInParent="true"/>
|
|
<ImageView
|
|
android:id="@+id/img_type"
|
|
android:background="@mipmap/community_icon_program"
|
|
android:visibility="gone"
|
|
android:layout_width="@dimen/publish_type_width"
|
|
android:layout_height="@dimen/publish_type_height"
|
|
android:layout_marginRight="@dimen/publish_type_margin_right"
|
|
android:layout_marginBottom="@dimen/publish_type_margin_bottom"
|
|
android:layout_alignParentBottom="true"
|
|
android:layout_alignParentEnd="true"/>
|
|
</androidx.cardview.widget.CardView>
|
|
<TextView
|
|
android:textSize="@dimen/content13"
|
|
android:textColor="@color/txt_596F80"
|
|
android:ellipsize="end"
|
|
android:gravity="top"
|
|
android:id="@+id/tv_desc"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_marginLeft="@dimen/user_center_publish_item_time_margin_left"
|
|
android:layout_marginTop="@dimen/publish_txt_margin_top"
|
|
android:text=""
|
|
android:maxLines="2"
|
|
android:layout_weight="1"/>
|
|
<LinearLayout
|
|
android:orientation="horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/user_center_publish_item_time_margin_top"
|
|
android:layout_marginBottom="@dimen/user_center_publish_item_time_margin_bottom">
|
|
<TextView
|
|
android:textSize="@dimen/content12"
|
|
android:textColor="@color/txt_96A6B4"
|
|
android:id="@+id/tv_time"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/user_center_publish_item_time_margin_left"
|
|
android:text="@string/pub_item_time"
|
|
android:layout_weight="1"/>
|
|
<ImageView
|
|
android:id="@+id/tv_popup"
|
|
android:layout_width="@dimen/user_center_publish_item_edit_width"
|
|
android:layout_height="@dimen/user_center_publish_item_edit_height"
|
|
android:src="@mipmap/user_center_publish_edit"
|
|
android:scaleType="centerInside"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
<RelativeLayout
|
|
android:orientation="vertical"
|
|
android:id="@+id/rl_covert"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
<TextView
|
|
android:textSize="@dimen/content11"
|
|
android:textColor="@color/txt_white"
|
|
android:id="@+id/tv_state"
|
|
android:visibility="gone"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="8dp"
|
|
android:layout_marginRight="8dp"
|
|
android:text="xxx"
|
|
android:layout_centerInParent="true"/>
|
|
<LinearLayout
|
|
android:gravity="center"
|
|
android:orientation="horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_centerInParent="true">
|
|
<ImageView
|
|
android:id="@+id/img_delete"
|
|
android:visibility="gone"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@mipmap/community_publish_delete"
|
|
android:scaleType="centerInside"/>
|
|
<ImageView
|
|
android:id="@+id/img_edit"
|
|
android:visibility="gone"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/user_center_publish_item_delete_margin_right"
|
|
android:src="@mipmap/community_publish_edit"
|
|
android:scaleType="centerInside"/>
|
|
</LinearLayout>
|
|
</RelativeLayout>
|
|
<TextView
|
|
android:textSize="13sp"
|
|
android:textColor="@color/color_FFFFFF"
|
|
android:id="@+id/check_status"
|
|
android:background="@drawable/bg_shape_check"
|
|
android:paddingLeft="10dp"
|
|
android:paddingTop="5dp"
|
|
android:paddingRight="10dp"
|
|
android:paddingBottom="5dp"
|
|
android:visibility="gone"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="15dp"
|
|
android:text="@string/under_review"
|
|
android:layout_alignParentRight="true"/>
|
|
</RelativeLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
</FrameLayout>
|