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) {
val bgShape: GradientDrawable? = tv_name.background as? GradientDrawable
bgShape?.setStroke(1, ColorUtils.getRandomColor())
bgShape?.setStroke(2, ColorUtils.getRandomColor())
tv_name.text = bookSource.name
}
}

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