pull/47/head
kunfei 5 years ago
parent d0e64c8210
commit cc4258cbc1
  1. 2
      app/src/main/java/io/legado/app/ui/main/explore/ExploreAdapter.kt
  2. 4
      app/src/main/res/layout/item_text.xml

@ -73,6 +73,7 @@ class ExploreAdapter(context: Context, private val scope: CoroutineScope, val ca
kindList.map { kind ->
val tv = LayoutInflater.from(context)
.inflate(R.layout.item_text, gl_child, false)
gl_child.addView(tv)
tv.text_view.text = kind.title
tv.text_view.onClick {
kind.url?.let { kindUrl ->
@ -83,7 +84,6 @@ class ExploreAdapter(context: Context, private val scope: CoroutineScope, val ca
)
}
}
gl_child.addView(tv)
}
}
}.onFinally {

@ -6,12 +6,10 @@
android:layout_height="wrap_content"
android:layout_margin="3dp"
android:background="@drawable/selector_fillet_btn_bg"
android:clickable="true"
android:ellipsize="end"
android:focusable="true"
android:gravity="center"
android:padding="5dp"
android:singleLine="true"
android:maxLines="1"
android:textColor="@color/tv_text_default"
android:textSize="14sp"
tools:ignore="UnusedAttribute" />

Loading…
Cancel
Save