Skip to content

Commit

Permalink
feat: Set ComposeViewHolder to match parent
Browse files Browse the repository at this point in the history
  • Loading branch information
YingChen0605 committed Jul 12, 2024
1 parent 5f7a864 commit 75e6985
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ abstract class ComposeViewHolder<P, T> : ComponentViewHolder<P, T>() {
element = element ?: return@setContent
)
}
layoutParams = ViewGroup.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.MATCH_PARENT
)
}
return composeView
}
Expand Down

0 comments on commit 75e6985

Please sign in to comment.