mirror of
https://github.com/leaf-wai/StackLayoutManager.git
synced 2026-03-16 01:22:50 +08:00
Update DefaultAnimation
delete redundant lines
This commit is contained in:
@ -2,7 +2,6 @@ package com.littlemango.stacklayoutmanager
|
||||
|
||||
import android.view.View
|
||||
|
||||
|
||||
class DefaultLayout(scrollOrientation: StackLayoutManager.ScrollOrientation,
|
||||
visibleCount: Int,
|
||||
perItemOffset: Int) : StackLayout(scrollOrientation, visibleCount, perItemOffset) {
|
||||
@ -16,7 +15,6 @@ class DefaultLayout(scrollOrientation: StackLayoutManager.ScrollOrientation,
|
||||
private var mHeight = 0
|
||||
private var mScrollOffset = 0
|
||||
|
||||
|
||||
override fun doLayout(stackLayoutManager: StackLayoutManager, scrollOffset: Int, firstMovePercent: Float, itemView: View, position: Int) {
|
||||
mWidth = stackLayoutManager.width
|
||||
mHeight = stackLayoutManager.height
|
||||
@ -97,4 +95,4 @@ class DefaultLayout(scrollOrientation: StackLayoutManager.ScrollOrientation,
|
||||
else -> mHeightSpace / 2
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user