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