All Projects → simplepeng → StackLayoutManager

simplepeng / StackLayoutManager

Licence: other
🔥🔥🔥 - 一个可以堆叠的LinearLayoutManager

Programming Languages

kotlin
9241 projects

StackLayoutManager

一个可以堆叠的LinearLayoutManager

动态图 静态图
img_stack_layout_manager.png

导入依赖

添加jitpack仓库

maven { url 'https://www.jitpack.io' }

添加StackLayoutManager的依赖

implementation 'com.github.simplepeng:StackLayoutManager:v1.0.0'

如何使用

直接将StackLayoutManager设置给RecyclerView

recyclerView.layoutManager = StackLayoutManager()

支持的构造参数

/**
 * @param orientation 支持的方向
 * @param reverseLayout 是否是逆序摆放
 * @param offset item‘间偏移量
 * @param changeDrawingOrder 改变默认绘制顺序
 */
class StackLayoutManager @JvmOverloads constructor(
    private val orientation: Int = HORIZONTAL,
    private val reverseLayout: Boolean = false,
    private val offset: Int = 0,
    private val changeDrawingOrder: Boolean = false
)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].