Skip to content

Commit

Permalink
fix: QuickGridLayoutManager空布局无法撑满 #3818
Browse files Browse the repository at this point in the history
  • Loading branch information
limuyang2 committed Dec 1, 2023
1 parent b57c295 commit 5b52abe
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -401,14 +401,14 @@ abstract class BaseQuickAdapter<T : Any, VH : RecyclerView.ViewHolder>(


/**
* Is full span item (Only StaggeredGridLayoutManager)
* 是否是完整跨度的item(仅限于 StaggeredGridLayoutManager)
* Is full span item
* 是否是完整跨度的item
*
* @param itemType
* @return
*/
open fun isFullSpanItem(itemType: Int): Boolean {
return false
return itemType == EMPTY_VIEW
}

/**
Expand Down Expand Up @@ -822,7 +822,7 @@ abstract class BaseQuickAdapter<T : Any, VH : RecyclerView.ViewHolder>(


companion object {
const val EMPTY_VIEW = 0x10000555
const val EMPTY_VIEW = 0x01000555

internal const val EMPTY_PAYLOAD = 0
}
Expand Down

0 comments on commit 5b52abe

Please sign in to comment.