-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
why
committed
Dec 10, 2023
1 parent
c837370
commit 76e9372
Showing
24 changed files
with
386 additions
and
90 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
app/src/main/java/com/xiaoyv/bangumi/ui/feature/search/detail/SearchDetailTagAdapter.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.xiaoyv.bangumi.ui.feature.search.detail | ||
|
||
import com.xiaoyv.bangumi.databinding.ActivitySearchDetailTagBinding | ||
import com.xiaoyv.common.api.parser.entity.SearchResultEntity | ||
import com.xiaoyv.common.helper.callback.IdDiffItemCallback | ||
import com.xiaoyv.widget.binder.BaseQuickBindingHolder | ||
import com.xiaoyv.widget.binder.BaseQuickDiffBindingAdapter | ||
|
||
/** | ||
* Class: [SearchDetailTagAdapter] | ||
* | ||
* @author why | ||
* @since 12/8/23 | ||
*/ | ||
class SearchDetailTagAdapter : BaseQuickDiffBindingAdapter<SearchResultEntity, | ||
ActivitySearchDetailTagBinding>(IdDiffItemCallback()) { | ||
|
||
override fun BaseQuickBindingHolder<ActivitySearchDetailTagBinding>.converted(item: SearchResultEntity) { | ||
binding.tvTitleTag.text = item.title | ||
binding.tvCommentCount.text = item.count | ||
} | ||
} |
Oops, something went wrong.