Update DefaultAnimation

delete redundant lines
This commit is contained in:
Little Mango
2018-07-05 10:34:30 +08:00
committed by GitHub
parent e6dc66a7ca
commit 742e66eeb5

View File

@ -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
}
}
}
}