清理代码与更新界面

This commit is contained in:
HapeLee committed 2025-08-11 03:47:04 +08:00
1 parent 1607984faa
commit b2918df258
35 files changed
+108 -132

No files matched your search

@@ -56,7 +56,7 @@ class ExploreShowAdapter(context: Context, val callBack: CallBack) :
llKind.gone()
} else {
llKind.visible()
llKind.setLabels(kinds)
llKind.setLabels(kinds) {}
}
ivCover.load(
item.coverUrl,
@@ -361,7 +361,7 @@ class BookInfoActivity :
lbKind.gone()
} else {
lbKind.visible()
lbKind.setLabels(kinds)
lbKind.setLabels(kinds) {}
}
}
}
@@ -4,6 +4,7 @@ import android.content.Context
import android.os.Bundle
import android.view.ViewGroup
import androidx.core.view.isVisible
import androidx.core.view.marginEnd
import androidx.recyclerview.widget.DiffUtil
import io.legato.kazusa.R
import io.legato.kazusa.base.adapter.DiffRecyclerAdapter
@@ -11,6 +12,7 @@ import io.legato.kazusa.base.adapter.ItemViewHolder
import io.legato.kazusa.data.entities.SearchBook
import io.legato.kazusa.databinding.ItemSearchBinding
import io.legato.kazusa.help.config.AppConfig
import io.legato.kazusa.utils.dpToPx
import io.legato.kazusa.utils.gone
import io.legato.kazusa.utils.visible
@@ -138,7 +140,9 @@ class SearchAdapter(context: Context, val callBack: CallBack) :
llKind.gone()
} else {
llKind.visible()
llKind.setLabels(kinds)
llKind.setLabels(kinds) { chips ->
chips.textSize = 12f
}
}
}