Commit 13453738 authored by mengcuiguang's avatar mengcuiguang

首页优化

parent 571e229f
......@@ -31,7 +31,7 @@ class FollowAdapter(var activity: Activity) :
holder.getView<TextView>(R.id.info_tv).text = "观看至第${item.seeIndex}集"
holder.getView<TextView>(R.id.complete_tv).text =
if (item.completeStatus == 0) "已完结" else "更新中"
GlideUtils.loadImageViewNoAnim2(context, item.coverImage, holder.getView(R.id.image_iv))
GlideUtils.loadImageViewGifForFitCenter(context, item.coverImage, holder.getView(R.id.image_iv))
}
// 设置编辑状态
......
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#50000000" />
<corners android:bottomLeftRadius="5dp"
android:bottomRightRadius="5dp"/>
</shape>
\ No newline at end of file
......@@ -11,16 +11,16 @@
<TextView
android:id="@+id/bannerTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_height="32dp"
android:ellipsize="marquee"
android:focusable="true"
android:background="@drawable/bg_shape_twoban"
android:focusableInTouchMode="true"
android:gravity="center_vertical"
android:singleLine="true"
android:textSize="18sp"
android:textSize="14sp"
android:textColor="#ffffff"
android:layout_marginLeft="10dp"
android:layout_marginBottom="8dp"
android:paddingLeft="10dp"
android:layout_alignParentBottom="true"/>
</RelativeLayout>
\ No newline at end of file
......@@ -180,7 +180,7 @@
android:singleLine="true"
android:text="我去平行时空我去平行时空"
android:textColor="@color/white"
android:textSize="14sp" />
android:textSize="15sp" />
<TextView
android:id="@+id/tv_main_watching_text1"
......@@ -190,7 +190,7 @@
android:layout_marginBottom="2dp"
android:singleLine="true"
android:textColor="@color/white"
android:textSize="10sp" />
android:textSize="12sp" />
<TextView
android:id="@+id/tv_main_watching_text2"
......@@ -202,7 +202,7 @@
</LinearLayout>
<RelativeLayout
android:layout_width="100dp"
android:layout_width="110dp"
android:layout_height="match_parent">
<ImageView
......@@ -215,7 +215,7 @@
<TextView
android:id="@+id/tv_main_watching_goto"
android:layout_width="100dp"
android:layout_width="110dp"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
......
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="wrap_content"
android:layout_height="206dp"
android:layout_marginLeft="3dp"
android:layout_marginRight="3dp"
android:layout_marginBottom="10dp">
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:layout_marginBottom="6dp"
android:orientation="vertical"
android:paddingLeft="5dp"
android:paddingRight="5dp">
<ImageView
android:id="@+id/image_iv"
android:layout_width="102dp"
android:layout_width="match_parent"
android:layout_height="150dp"
android:scaleType="fitXY"
android:src="@mipmap/ic_launcher_main"
......@@ -17,16 +19,28 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/complete_tv"
android:layout_width="wrap_content"
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginEnd="6dp"
android:layout_marginBottom="4dp"
android:text="已完结"
android:textColor="@color/white"
android:background="@drawable/bg_shape_twoban"
app:layout_constraintBottom_toBottomOf="@id/image_iv"
app:layout_constraintEnd_toEndOf="@id/image_iv" />
app:layout_constraintEnd_toEndOf="@id/image_iv">
<TextView
android:id="@+id/complete_tv"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="right"
android:paddingLeft="6dp"
android:paddingTop="2dp"
android:paddingRight="8dp"
android:layout_alignParentRight="true"
android:paddingBottom="2dp"
android:text="已完结"
android:textColor="@color/white"
android:textSize="12sp" />
</RelativeLayout>
<TextView
android:id="@+id/title_tv"
......@@ -55,7 +69,7 @@
<FrameLayout
android:id="@+id/fm_mask"
android:layout_width="102dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/shape_half_trans2"
app:layout_constraintEnd_toEndOf="@id/image_iv"
......
......@@ -7,9 +7,9 @@
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:layout_marginBottom="6dp"
android:orientation="vertical"
android:paddingLeft="5dp"
android:paddingRight="5dp"
android:orientation="vertical">
android:paddingRight="5dp">
<FrameLayout
android:layout_width="match_parent"
......@@ -18,18 +18,21 @@
<ImageView
android:id="@+id/ivVedioItem"
android:layout_width="match_parent"
android:minWidth="106dp"
android:layout_height="150dp"
android:minWidth="106dp"
android:scaleType="fitXY" />
<TextView
android:id="@+id/tvVedioItemCount"
android:layout_width="wrap_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom|right"
android:layout_marginRight="6dp"
android:layout_marginBottom="8dp"
android:gravity="center"
android:background="@drawable/bg_shape_twoban"
android:gravity="right"
android:paddingLeft="6dp"
android:paddingTop="2dp"
android:paddingRight="8dp"
android:paddingBottom="2dp"
android:text="143.2万"
android:textColor="@color/white"
android:textSize="12sp" />
......@@ -41,10 +44,10 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:text="我去平行时空"
android:singleLine="true"
android:text="我去平行时空"
android:textColor="@color/black"
android:textSize="14sp" />
android:textSize="13sp" />
<TextView
android:id="@+id/tvVedioItemText"
......@@ -52,6 +55,6 @@
android:layout_height="wrap_content"
android:singleLine="true"
android:textColor="@color/gray"
android:textSize="12sp" />
android:textSize="11sp" />
</LinearLayout>
\ No newline at end of file
......@@ -15,9 +15,9 @@
<ImageView
android:id="@+id/ivTopItem"
android:scaleType="fitXY"
android:layout_width="match_parent"
android:layout_height="match_parent" />
android:layout_height="match_parent"
android:scaleType="fitXY" />
<TextView
android:id="@+id/tvTopItemLable"
......@@ -26,25 +26,42 @@
android:layout_marginLeft="10dp"
android:background="@mipmap/y4"
android:gravity="center"
android:textStyle="bold"
android:paddingBottom="2dp"
android:text="1"
android:textColor="@color/white"
android:textSize="12sp" />
android:textSize="12sp"
android:textStyle="bold" />
<TextView
android:id="@+id/tvTopItemCount"
android:layout_width="wrap_content"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:layout_marginLeft="6dp"
android:layout_marginBottom="8dp"
android:background="@drawable/bg_shape_twoban"
android:drawableLeft="@mipmap/ic_load"
android:drawablePadding="4dp"
android:gravity="center"
android:text="143.2万"
android:textColor="@color/white"
android:textSize="12sp" />
android:gravity="center_vertical"
android:orientation="horizontal">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="6dp"
android:src="@mipmap/ic_load"></ImageView>
<TextView
android:id="@+id/tvTopItemCount"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:paddingLeft="6dp"
android:paddingTop="2dp"
android:paddingRight="8dp"
android:paddingBottom="2dp"
android:text="143.2万"
android:textColor="@color/white"
android:textSize="12sp" />
</LinearLayout>
</FrameLayout>
......@@ -53,11 +70,10 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="2dp"
android:text="我去平行时空"
android:textStyle="bold"
android:singleLine="true"
android:text="我去平行时空"
android:textColor="@color/black"
android:textSize="14sp" />
android:textSize="13sp" />
<TextView
android:id="@+id/tvTopItemText"
......@@ -65,6 +81,6 @@
android:layout_height="wrap_content"
android:singleLine="true"
android:textColor="@color/gray"
android:textSize="12sp" />
android:textSize="11sp" />
</LinearLayout>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment