jimu-decompiled/resources/res/layout/item_collection.xml
2025-05-13 19:24:51 +02:00

110 lines
5.5 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="match_parent"
android:layout_height="wrap_content">
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="@dimen/user_center_collection_item_height"
app:cardCornerRadius="@dimen/item_corner_radius"
app:cardElevation="0dp">
<RelativeLayout
android:id="@+id/rl_content"
android:layout_width="match_parent"
android:layout_height="@dimen/user_center_collection_item_height">
<RelativeLayout
android:id="@+id/rl_img_content"
android:background="@color/translucent"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerHorizontal="true">
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="match_parent"
app:cardCornerRadius="@dimen/item_corner_radius"
app:cardElevation="0dp">
<ImageView
android:id="@+id/img_play_background"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginBottom="@dimen/item_corner_radius"
android:scaleType="centerCrop"/>
<ImageView
android:layout_gravity="center"
android:id="@+id/img_play"
android:background="@mipmap/icon_play"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</androidx.cardview.widget.CardView>
</RelativeLayout>
<LinearLayout
android:gravity="top"
android:orientation="vertical"
android:background="@color/bg_white"
android:layout_width="match_parent"
android:layout_height="@dimen/user_center_collection_item_bottom_height"
android:layout_alignParentBottom="true">
<TextView
android:textSize="@dimen/content11"
android:textColor="@color/txt_black"
android:ellipsize="end"
android:layout_gravity="bottom"
android:id="@+id/tv_nickname"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/user_center_collection_item_logo_margin_right"
android:text="@string/hot_content_author"
android:lines="1"
android:singleLine="true"/>
<TextView
android:textSize="@dimen/content11"
android:textColor="@color/txt_777B7C"
android:ellipsize="end"
android:gravity="top"
android:id="@+id/tv_hot_desc"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/user_center_collection_item_content_margin_left"
android:layout_marginTop="@dimen/user_center_collection_item_content_margin_top"
android:text="@string/hot_content_desc"
android:maxLines="2"/>
</LinearLayout>
<ImageView
android:layout_gravity="center"
android:id="@+id/img_header"
android:background="@drawable/bg_community_head"
android:padding="2dp"
android:layout_width="@dimen/comm_head_width"
android:layout_height="@dimen/comm_head_height"
android:layout_marginBottom="@dimen/user_center_collection_item_logo_margin_bottom"
android:src="@drawable/tab_base_user_default"
android:layout_alignParentBottom="true"/>
<RelativeLayout
android:orientation="vertical"
android:id="@+id/rl_covert"
android:background="@drawable/shape_pub_50"
android:visibility="gone"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true">
<TextView
android:textSize="@dimen/content11"
android:textColor="@color/txt_white"
android:id="@+id/tv_state"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="xxx"
android:layout_centerInParent="true"/>
</RelativeLayout>
<ImageView
android:id="@+id/img_collection_select"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:layout_marginRight="2.3dp"
android:layout_alignParentRight="true"/>
</RelativeLayout>
</androidx.cardview.widget.CardView>
</FrameLayout>