This repository was archived by the owner on Jul 18, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
java/com/yenaly/han1meviewer/ui Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ class HanimeVideoRvAdapter(
8282 holder.getView<TextView >(R .id.title).text = item.title
8383 holder.getView<ImageView >(R .id.cover).load(item.coverUrl) {
8484 crossfade(true )
85+ placeholder(R .drawable.akarin)
8586 }
8687 holder.getView<TextView >(R .id.is_playing).isVisible = item.isPlaying
8788 holder.getView<TextView >(R .id.duration).text = item.duration
Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ import com.yenaly.han1meviewer.util.colorTransition
5252import com.yenaly.han1meviewer.util.toColorStateList
5353import com.yenaly.yenaly_libs.base.YenalyFragment
5454import com.yenaly.yenaly_libs.utils.appScreenWidth
55- import com.yenaly.yenaly_libs.utils.getThemeColor
5655import com.yenaly.yenaly_libs.utils.unsafeLazy
5756import com.yenaly.yenaly_libs.utils.view.AppBarLayoutStateChangeListener
5857import com.yenaly.yenaly_libs.utils.view.innerRecyclerView
Original file line number Diff line number Diff line change @@ -89,12 +89,13 @@ fun VideoCardItem(
8989 ),
9090 shape = RoundedCornerShape (12 .dp),
9191 tonalElevation = 2 .dp,
92+ shadowElevation = 1 .dp,
9293 color = MaterialTheme .colorScheme.surface,
9394 contentColor = MaterialTheme .colorScheme.onSurface
9495 ) {
9596 Column (
9697 horizontalAlignment = Alignment .CenterHorizontally ,
97- modifier = Modifier .background( MaterialTheme .colorScheme.surface )
98+ modifier = Modifier .fillMaxWidth( )
9899 ) {
99100 Box (
100101 modifier = Modifier
@@ -106,7 +107,7 @@ fun VideoCardItem(
106107 contentDescription = videoItem.title,
107108 modifier = Modifier
108109 .fillMaxSize(),
109- placeholder = painterResource(R .drawable.baseline_data_usage_24 ),
110+ placeholder = painterResource(R .drawable.akarin ),
110111 error = painterResource(android.R .drawable.stat_notify_error),
111112 contentScale = ContentScale .Crop
112113 )
Original file line number Diff line number Diff line change 4141 android : layout_height =" match_parent"
4242 android : contentDescription =" @null"
4343 android : scaleType =" centerCrop"
44- app : shapeAppearanceOverlay =" @style/RoundCornerImageView " />
44+ app : shapeAppearanceOverlay =" @style/TopRoundCornerImageView " />
4545
4646 <TextView
4747 android : id =" @+id/is_playing"
5858 android : layout_width =" match_parent"
5959 android : layout_height =" 25dp"
6060 android : layout_gravity =" bottom"
61- android : background =" @drawable/gradient_black_transparent_90 "
61+ android : background =" @drawable/linear_gradient_90_notrans "
6262 android : paddingStart =" 4dp"
6363 android : paddingEnd =" 4dp"
6464 android : paddingBottom =" 4dp" >
Original file line number Diff line number Diff line change 4141 android : layout_width =" match_parent"
4242 android : layout_height =" match_parent"
4343 android : contentDescription =" @null"
44- app : shapeAppearanceOverlay =" @style/RoundCornerImageView " />
44+ app : shapeAppearanceOverlay =" @style/TopRoundCornerImageView " />
4545
4646 </FrameLayout >
4747
Original file line number Diff line number Diff line change 7777 <item name =" cornerFamily" >rounded</item >
7878 <item name =" cornerSize" >8dp</item >
7979 </style >
80+
81+ <style name =" TopRoundCornerImageView" parent =" " >
82+ <!-- 上左圆角 -->
83+ <item name =" cornerFamilyTopLeft" >rounded</item >
84+ <item name =" cornerSizeTopLeft" >8dp</item >
85+
86+ <!-- 上右圆角 -->
87+ <item name =" cornerFamilyTopRight" >rounded</item >
88+ <item name =" cornerSizeTopRight" >8dp</item >
89+
90+ <!-- 下左直角 -->
91+ <item name =" cornerFamilyBottomLeft" >cut</item >
92+ <item name =" cornerSizeBottomLeft" >0dp</item >
93+
94+ <!-- 下右直角 -->
95+ <item name =" cornerFamilyBottomRight" >cut</item >
96+ <item name =" cornerSizeBottomRight" >0dp</item >
97+ </style >
8098 <!-- 启动页面专用主题 -->
8199 <style name =" Theme.Hanime1.Splash" parent =" Theme.SplashScreen" >
82100 <!-- 背景颜色 -->
You can’t perform that action at this time.
0 commit comments