class XYLayoutManager(private val context: Context, val recyclerView: RecyclerView) : LinearLayoutManager(context) { companion object { val TAG = "XYLayoutManager" } private val _itemMaxHeight: Int private val _itemMinHeight: Int private var _scrollY: Int = 0 init { FLog.d(TAG, "constructor") val resources = context.resources _itemMaxHeight = 40 _itemMinHeight = 20 } }