Skip to content

Commit

Permalink
upate the carouselRecyclerview
Browse files Browse the repository at this point in the history
  • Loading branch information
sparrow007 committed May 30, 2022
1 parent 9c01a41 commit 246dbb9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,9 @@ class CarouselRecyclerview(context: Context, attributeSet: AttributeSet) : Recyc
val actualPos: Int = getCarouselLayoutManager().getChildActualPos(i)
var order: Int = i

// The number of intervals from the middle item
if (actualPos != Int.MIN_VALUE) {

// The number of intervals from the middle item
val dist = actualPos - center
// [< 0] indicates that the item is located to the left of the middle item and can be drawn in order
// [< 0] indicates that the item is located to the left of the middle item and can be drawn in order
Expand Down

0 comments on commit 246dbb9

Please sign in to comment.