diff --git a/app/src/main/java/io/legado/app/ui/importbook/ImportBookAdapter.kt b/app/src/main/java/io/legado/app/ui/importbook/ImportBookAdapter.kt index d872dd169..a5eb9251c 100644 --- a/app/src/main/java/io/legado/app/ui/importbook/ImportBookAdapter.kt +++ b/app/src/main/java/io/legado/app/ui/importbook/ImportBookAdapter.kt @@ -25,14 +25,10 @@ class ImportBookAdapter(context: Context, val callBack: CallBack) : iv_icon.visible() cb_select.invisible() ll_brief.gone() - tv_sub_count.visible() - tv_sub_count.text = - context.getString(R.string.nb_file_sub_count, item.listFiles().size) } else { iv_icon.invisible() cb_select.visible() ll_brief.visible() - tv_sub_count.gone() tv_tag.text = item.name?.substringAfterLast(".") tv_size.text = StringUtils.toSize(item.length()) tv_date.text = AppConst.DATE_FORMAT.format(Date(item.lastModified())) diff --git a/app/src/main/res/layout/item_import_book.xml b/app/src/main/res/layout/item_import_book.xml index 882274b2d..e467aab97 100644 --- a/app/src/main/res/layout/item_import_book.xml +++ b/app/src/main/res/layout/item_import_book.xml @@ -31,26 +31,28 @@ app:tint="@color/tv_text_default" /> - + android:orientation="vertical"> + android:textSize="16sp" + android:gravity="center_vertical" + tools:ignore="NestedWeights" /> @@ -82,12 +84,5 @@ tools:text="2017-05-22" /> - - + \ No newline at end of file