You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
val topAlignment =ParentAlignment(fraction =0f)
recyclerView.setParentAlignmentOverride(object:ParentAlignmentOverride {
overridefungetAlignment(position:Int): ParentAlignment? {
returnif (position ==0) {
// Align the first position to the top
topAlignment
} else {
// Use default alignment configurationnull
}
}
})
}
interfaceParentAlignmentOverride {
fungetAlignment(position:Int): ParentAlignment?
}
The text was updated successfully, but these errors were encountered:
API example:
The text was updated successfully, but these errors were encountered: