pull/32/head
GKF 6 years ago
parent f917e2f3d5
commit 2304a1c7fb
  1. 2
      app/src/main/java/io/legado/app/ui/main/findbook/FindBookAdapter.kt
  2. 2
      app/src/main/res/drawable/shape_radius_10dp.xml

@ -39,7 +39,7 @@ class FindBookAdapter:PagedListAdapter<BookSource, FindBookAdapter.MyViewHolder>
fun bind(bookSource: BookSource) = with(itemView) { fun bind(bookSource: BookSource) = with(itemView) {
val bgShape: GradientDrawable? = tv_name.background as? GradientDrawable val bgShape: GradientDrawable? = tv_name.background as? GradientDrawable
bgShape?.setStroke(1, ColorUtils.getRandomColor()) bgShape?.setStroke(2, ColorUtils.getRandomColor())
tv_name.text = bookSource.name tv_name.text = bookSource.name
} }
} }

@ -3,6 +3,6 @@
<corners android:radius="16dp" /> <corners android:radius="16dp" />
<solid android:color="#00ffffff" /> <solid android:color="#00ffffff" />
<stroke <stroke
android:width="3dp" android:width="1dp"
android:color="@color/tv_text_secondary" /> android:color="@color/tv_text_secondary" />
</shape> </shape>
Loading…
Cancel
Save