258 lines
11 KiB
XML
258 lines
11 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="20dp"
|
|
android:layout_marginTop="20dp"
|
|
android:layout_marginRight="20dp"
|
|
android:layout_marginBottom="20dp"
|
|
android:weightSum="4"
|
|
android:layout_below="@+id/rl_recommend_title">
|
|
<RelativeLayout
|
|
android:id="@+id/rl_item_1"
|
|
android:background="@drawable/bg_community_diy"
|
|
style="@style/rl_item_size">
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/card_image_layout_1"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/card_image_layout"
|
|
app:cardBackgroundColor="@color/bg_white"
|
|
app:cardCornerRadius="11dp"
|
|
app:cardElevation="0dp">
|
|
<ImageView
|
|
android:layout_gravity="center"
|
|
android:background="@drawable/load_image_error"
|
|
android:layout_width="55dp"
|
|
android:layout_height="40dp"/>
|
|
<ImageView
|
|
android:id="@+id/img_play_background_1"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/img_play_background"
|
|
android:scaleType="centerCrop"/>
|
|
<ImageView
|
|
android:layout_gravity="center"
|
|
android:id="@+id/img_play_1"
|
|
android:background="@mipmap/icon_play"
|
|
android:visibility="gone"
|
|
style="@style/inspire_play_icon"/>
|
|
</androidx.cardview.widget.CardView>
|
|
<RelativeLayout
|
|
android:id="@+id/rl_photo_layout_1"
|
|
android:layout_below="@+id/card_image_layout_1"
|
|
style="@style/link_middle_view">
|
|
<ImageView style="@style/link_recommend_style"/>
|
|
<ImageView
|
|
android:id="@+id/img_header_1"
|
|
style="@style/link_recommend_photo_style"/>
|
|
<TextView
|
|
android:textColor="@color/txt_96A6B4"
|
|
android:ellipsize="end"
|
|
android:id="@+id/tv_nickname_1"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Good"
|
|
android:singleLine="true"
|
|
android:layout_toRightOf="@+id/img_header_1"
|
|
android:layout_alignBottom="@+id/img_header_1"
|
|
style="@style/guess_tv_nickname"/>
|
|
</RelativeLayout>
|
|
<TextView
|
|
android:textColor="@color/theme_txt"
|
|
android:ellipsize="end"
|
|
android:gravity="center_vertical"
|
|
android:id="@+id/tv_hot_desc_1"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:maxLines="2"
|
|
android:layout_below="@+id/rl_photo_layout_1"
|
|
android:layout_alignParentBottom="true"
|
|
style="@style/guess_tv_hot_desc"/>
|
|
</RelativeLayout>
|
|
<RelativeLayout
|
|
android:id="@+id/rl_item_2"
|
|
android:background="@drawable/bg_community_diy"
|
|
android:visibility="gone"
|
|
style="@style/rl_item_size">
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/card_image_layout_2"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/card_image_layout"
|
|
app:cardBackgroundColor="@color/bg_white"
|
|
app:cardCornerRadius="11dp"
|
|
app:cardElevation="0dp">
|
|
<ImageView
|
|
android:layout_gravity="center"
|
|
android:background="@drawable/load_image_error"
|
|
android:layout_width="55dp"
|
|
android:layout_height="40dp"/>
|
|
<ImageView
|
|
android:id="@+id/img_play_background_2"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/img_play_background"
|
|
android:scaleType="centerCrop"/>
|
|
<ImageView
|
|
android:layout_gravity="center"
|
|
android:id="@+id/img_play_2"
|
|
android:background="@mipmap/icon_play"
|
|
android:visibility="gone"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"/>
|
|
</androidx.cardview.widget.CardView>
|
|
<RelativeLayout
|
|
android:id="@+id/rl_photo_layout_2"
|
|
android:layout_below="@+id/card_image_layout_2"
|
|
style="@style/link_middle_view">
|
|
<ImageView style="@style/link_recommend_style"/>
|
|
<ImageView
|
|
android:id="@+id/img_header_2"
|
|
style="@style/link_recommend_photo_style"/>
|
|
<TextView
|
|
android:textColor="@color/txt_96A6B4"
|
|
android:ellipsize="end"
|
|
android:id="@+id/tv_nickname_2"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Good"
|
|
android:singleLine="true"
|
|
android:layout_toRightOf="@+id/img_header_2"
|
|
android:layout_alignBottom="@+id/img_header_2"
|
|
style="@style/guess_tv_nickname"/>
|
|
</RelativeLayout>
|
|
<TextView
|
|
android:textColor="@color/theme_txt"
|
|
android:ellipsize="end"
|
|
android:gravity="center_vertical"
|
|
android:id="@+id/tv_hot_desc_2"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:maxLines="2"
|
|
android:layout_below="@+id/rl_photo_layout_2"
|
|
android:layout_alignParentBottom="true"
|
|
style="@style/guess_tv_hot_desc"/>
|
|
</RelativeLayout>
|
|
<RelativeLayout
|
|
android:id="@+id/rl_item_3"
|
|
android:background="@drawable/bg_community_diy"
|
|
android:visibility="gone"
|
|
style="@style/rl_item_size">
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/card_image_layout_3"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/card_image_layout"
|
|
app:cardBackgroundColor="@color/bg_white"
|
|
app:cardCornerRadius="11dp"
|
|
app:cardElevation="0dp">
|
|
<ImageView
|
|
android:layout_gravity="center"
|
|
android:background="@drawable/load_image_error"
|
|
android:layout_width="55dp"
|
|
android:layout_height="40dp"/>
|
|
<ImageView
|
|
android:id="@+id/img_play_background_3"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/img_play_background"
|
|
android:scaleType="centerCrop"/>
|
|
<ImageView
|
|
android:layout_gravity="center"
|
|
android:id="@+id/img_play_3"
|
|
android:background="@mipmap/icon_play"
|
|
android:visibility="gone"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"/>
|
|
</androidx.cardview.widget.CardView>
|
|
<RelativeLayout
|
|
android:id="@+id/rl_photo_layout_3"
|
|
android:layout_below="@+id/card_image_layout_3"
|
|
style="@style/link_middle_view">
|
|
<ImageView style="@style/link_recommend_style"/>
|
|
<ImageView
|
|
android:id="@+id/img_header_3"
|
|
style="@style/link_recommend_photo_style"/>
|
|
<TextView
|
|
android:textColor="@color/txt_96A6B4"
|
|
android:ellipsize="end"
|
|
android:id="@+id/tv_nickname_3"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Good"
|
|
android:singleLine="true"
|
|
android:layout_toRightOf="@+id/img_header_3"
|
|
android:layout_alignBottom="@+id/img_header_3"
|
|
style="@style/guess_tv_nickname"/>
|
|
</RelativeLayout>
|
|
<TextView
|
|
android:textColor="@color/theme_txt"
|
|
android:ellipsize="end"
|
|
android:gravity="center_vertical"
|
|
android:id="@+id/tv_hot_desc_3"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:maxLines="2"
|
|
android:layout_below="@+id/rl_photo_layout_3"
|
|
android:layout_alignParentBottom="true"
|
|
style="@style/guess_tv_hot_desc"/>
|
|
</RelativeLayout>
|
|
<RelativeLayout
|
|
android:id="@+id/rl_item_4"
|
|
android:background="@drawable/bg_community_diy"
|
|
android:visibility="gone"
|
|
style="@style/rl_item_size">
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/card_image_layout_4"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/card_image_layout"
|
|
app:cardBackgroundColor="@color/bg_white"
|
|
app:cardCornerRadius="11dp"
|
|
app:cardElevation="0dp">
|
|
<ImageView
|
|
android:layout_gravity="center"
|
|
android:background="@drawable/load_image_error"
|
|
android:layout_width="55dp"
|
|
android:layout_height="40dp"/>
|
|
<ImageView
|
|
android:id="@+id/img_play_background_4"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="@dimen/img_play_background"
|
|
android:scaleType="centerCrop"/>
|
|
<ImageView
|
|
android:layout_gravity="center"
|
|
android:id="@+id/img_play_4"
|
|
android:background="@mipmap/icon_play"
|
|
android:visibility="gone"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"/>
|
|
</androidx.cardview.widget.CardView>
|
|
<RelativeLayout
|
|
android:id="@+id/rl_photo_layout_4"
|
|
android:layout_below="@+id/card_image_layout_4"
|
|
style="@style/link_middle_view">
|
|
<ImageView style="@style/link_recommend_style"/>
|
|
<ImageView
|
|
android:id="@+id/img_header_4"
|
|
style="@style/link_recommend_photo_style"/>
|
|
<TextView
|
|
android:textColor="@color/txt_96A6B4"
|
|
android:ellipsize="end"
|
|
android:id="@+id/tv_nickname_4"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Good"
|
|
android:singleLine="true"
|
|
android:layout_toRightOf="@+id/img_header_4"
|
|
android:layout_alignBottom="@+id/img_header_4"
|
|
style="@style/guess_tv_nickname"/>
|
|
</RelativeLayout>
|
|
<TextView
|
|
android:textColor="@color/theme_txt"
|
|
android:ellipsize="end"
|
|
android:gravity="center_vertical"
|
|
android:id="@+id/tv_hot_desc_4"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:maxLines="2"
|
|
android:layout_below="@+id/rl_photo_layout_4"
|
|
android:layout_alignParentBottom="true"
|
|
style="@style/guess_tv_hot_desc"/>
|
|
</RelativeLayout>
|
|
</LinearLayout>
|