Skip to content

Commit

Permalink
Merge pull request #41 from skydoves/fix/cliptopadding
Browse files Browse the repository at this point in the history
Apply clipToPadding to the recyclerview
  • Loading branch information
skydoves authored Jun 26, 2024
2 parents 40c10a3 + 000a40d commit 38ff978
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,11 @@ public class VeilRecyclerFrameView : RelativeLayout {
}

private fun onCreate() {
addView(this.userRecyclerView, LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)
addView(this.veiledRecyclerView, LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)
this.veiledRecyclerView.setHasFixedSize(true)
addView(userRecyclerView, LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)
addView(veiledRecyclerView, LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)
userRecyclerView.clipToPadding = this@VeilRecyclerFrameView.clipToPadding
veiledRecyclerView.clipToPadding = this@VeilRecyclerFrameView.clipToPadding
veiledRecyclerView.setHasFixedSize(true)
applyOverScrollMode()
when (this.isVeiled) {
true -> visibleVeilRecyclerView()
Expand Down

0 comments on commit 38ff978

Please sign in to comment.