From 950395ca74a33383672a2f1034d318c9211ff8a5 Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 20 Sep 2019 12:39:33 +0800 Subject: [PATCH] up --- .../main/java/io/legado/app/ui/widget/KeyboardToolPop.kt | 6 ++++-- app/src/main/res/layout/item_text.xml | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/widget/KeyboardToolPop.kt b/app/src/main/java/io/legado/app/ui/widget/KeyboardToolPop.kt index e31afbc0f..57f40c039 100644 --- a/app/src/main/java/io/legado/app/ui/widget/KeyboardToolPop.kt +++ b/app/src/main/java/io/legado/app/ui/widget/KeyboardToolPop.kt @@ -43,8 +43,10 @@ class KeyboardToolPop( SimpleRecyclerAdapter(context, R.layout.item_text) { override fun convert(holder: ItemViewHolder, item: String, payloads: MutableList) { - holder.itemView.text_view.text = item - holder.itemView.onClick { onClickListener?.click(item) } + with(holder.itemView) { + text_view.text = item + onClick { onClickListener?.click(item) } + } } } diff --git a/app/src/main/res/layout/item_text.xml b/app/src/main/res/layout/item_text.xml index 107eebf35..87687a713 100644 --- a/app/src/main/res/layout/item_text.xml +++ b/app/src/main/res/layout/item_text.xml @@ -1,10 +1,11 @@ + android:textSize="14sp" + tools:ignore="UnusedAttribute" />