191 lines
9.0 KiB
XML
191 lines
9.0 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:background="@color/theme_background"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
<RelativeLayout style="@style/link_item_bg">
|
|
<RelativeLayout
|
|
android:id="@+id/img_header_layout"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="@dimen/dp10">
|
|
<ImageView
|
|
android:background="@drawable/photo_frame"
|
|
android:layout_width="@dimen/dp115"
|
|
android:layout_height="@dimen/dp115"/>
|
|
<com.ubt.jimu.widgets.RoundedImageView
|
|
android:id="@+id/img_header"
|
|
android:layout_width="@dimen/dp80"
|
|
android:layout_height="@dimen/dp80"
|
|
android:src="@drawable/default_photo"
|
|
android:layout_centerInParent="true"
|
|
app:riv_corner_radius="@dimen/dp50"/>
|
|
</RelativeLayout>
|
|
<TextView
|
|
android:textSize="@dimen/dp26"
|
|
android:textColor="@color/bg_24A8FF"
|
|
android:id="@+id/tv_nickname"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/dp20"
|
|
android:layout_marginTop="@dimen/dp25"
|
|
android:text="@string/favourite_official_author"
|
|
android:layout_toEndOf="@+id/img_header_layout"/>
|
|
<TextView
|
|
android:textSize="@dimen/dp26"
|
|
android:textColor="@color/theme_txt"
|
|
android:id="@+id/tv_author_desc"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/dp15"
|
|
android:layout_marginTop="@dimen/dp25"
|
|
android:text="@string/favourite_official_issue"
|
|
android:layout_toEndOf="@+id/tv_nickname"/>
|
|
<TextView
|
|
android:textSize="@dimen/dp24"
|
|
android:textColor="@color/txt_92A7B6"
|
|
android:gravity="center"
|
|
android:id="@+id/tv_intro_time"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginLeft="@dimen/dp30"
|
|
android:layout_marginTop="@dimen/dp25"
|
|
android:text="@string/favourite_official_time"
|
|
android:layout_alignBaseline="@+id/tv_author_desc"
|
|
android:layout_toEndOf="@+id/tv_author_desc"/>
|
|
<TextView
|
|
android:textSize="@dimen/dp28"
|
|
android:textColor="@color/bg_596F80"
|
|
android:ellipsize="end"
|
|
android:gravity="center_vertical"
|
|
android:id="@+id/tv_intro_title"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp10"
|
|
android:lines="1"
|
|
android:layout_below="@+id/tv_nickname"
|
|
android:layout_alignLeft="@+id/tv_nickname"/>
|
|
<LinearLayout
|
|
android:id="@+id/ll_image_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp15"
|
|
android:layout_marginRight="@dimen/dp30w"
|
|
android:layout_marginBottom="@dimen/dp25"
|
|
android:layout_below="@+id/tv_intro_title"
|
|
android:layout_alignLeft="@+id/tv_nickname">
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/card_image_layout_1"
|
|
app:cardBackgroundColor="@color/bg_ebebeb"
|
|
app:cardCornerRadius="@dimen/dp10"
|
|
app:cardElevation="0dp"
|
|
style="@style/link_image_style">
|
|
<ImageView
|
|
android:layout_gravity="center"
|
|
android:background="@drawable/load_image_error"
|
|
android:layout_width="@dimen/dp120"
|
|
android:layout_height="@dimen/dp100"/>
|
|
<ImageView
|
|
android:id="@+id/im_image_1"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:scaleType="centerCrop"
|
|
android:layout_weight="1"/>
|
|
<ImageView
|
|
android:layout_gravity="center"
|
|
android:id="@+id/im_play_icon_1"
|
|
android:background="@drawable/toggle_btn_play"
|
|
android:layout_width="@dimen/dp50"
|
|
android:layout_height="@dimen/dp50"/>
|
|
</androidx.cardview.widget.CardView>
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/card_image_layout_2"
|
|
android:layout_marginLeft="@dimen/dp10"
|
|
app:cardBackgroundColor="@color/bg_ebebeb"
|
|
app:cardCornerRadius="@dimen/dp10"
|
|
app:cardElevation="0dp"
|
|
style="@style/link_image_style">
|
|
<ImageView
|
|
android:layout_gravity="center"
|
|
android:background="@drawable/load_image_error"
|
|
android:layout_width="@dimen/dp120"
|
|
android:layout_height="@dimen/dp100"/>
|
|
<ImageView
|
|
android:id="@+id/im_image_2"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:scaleType="centerCrop"
|
|
android:layout_weight="1"/>
|
|
<ImageView
|
|
android:layout_gravity="center"
|
|
android:id="@+id/im_play_icon_2"
|
|
android:background="@drawable/toggle_btn_play"
|
|
android:layout_width="@dimen/dp50"
|
|
android:layout_height="@dimen/dp50"/>
|
|
</androidx.cardview.widget.CardView>
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/card_image_layout_3"
|
|
android:layout_marginLeft="@dimen/dp10"
|
|
app:cardBackgroundColor="@color/bg_ebebeb"
|
|
app:cardCornerRadius="@dimen/dp10"
|
|
app:cardElevation="0dp"
|
|
style="@style/link_image_style">
|
|
<ImageView
|
|
android:layout_gravity="center"
|
|
android:background="@drawable/load_image_error"
|
|
android:layout_width="@dimen/dp120"
|
|
android:layout_height="@dimen/dp100"/>
|
|
<ImageView
|
|
android:id="@+id/im_image_3"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:scaleType="centerCrop"
|
|
android:layout_weight="1"/>
|
|
<ImageView
|
|
android:layout_gravity="center"
|
|
android:id="@+id/im_play_icon_3"
|
|
android:background="@drawable/toggle_btn_play"
|
|
android:layout_width="@dimen/dp50"
|
|
android:layout_height="@dimen/dp50"/>
|
|
</androidx.cardview.widget.CardView>
|
|
<androidx.cardview.widget.CardView
|
|
android:id="@+id/card_image_layout_4"
|
|
android:layout_marginLeft="@dimen/dp10"
|
|
app:cardBackgroundColor="@color/bg_ebebeb"
|
|
app:cardCornerRadius="@dimen/dp10"
|
|
app:cardElevation="0dp"
|
|
style="@style/link_image_style">
|
|
<ImageView
|
|
android:layout_gravity="center"
|
|
android:background="@drawable/load_image_error"
|
|
android:layout_width="@dimen/dp120"
|
|
android:layout_height="@dimen/dp100"/>
|
|
<ImageView
|
|
android:id="@+id/im_image_4"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:scaleType="centerCrop"
|
|
android:layout_weight="1"/>
|
|
<ImageView
|
|
android:layout_gravity="center"
|
|
android:id="@+id/im_play_icon_4"
|
|
android:background="@drawable/toggle_btn_play"
|
|
android:layout_width="@dimen/dp50"
|
|
android:layout_height="@dimen/dp50"/>
|
|
</androidx.cardview.widget.CardView>
|
|
</LinearLayout>
|
|
<TextView
|
|
android:textSize="@dimen/dp26"
|
|
android:textColor="@color/txt_96A6B4"
|
|
android:ellipsize="end"
|
|
android:id="@+id/tv_label"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginRight="@dimen/dp70w"
|
|
android:layout_marginBottom="@dimen/dp40"
|
|
android:maxLines="2"
|
|
android:layout_below="@+id/ll_image_layout"
|
|
android:layout_alignLeft="@+id/tv_nickname"/>
|
|
</RelativeLayout>
|
|
</RelativeLayout>
|