StackLayoutManager
🔥🔥🔥 - 一个可以堆叠的LinearLayoutManager
Install / Use
/learn @simplepeng/StackLayoutManagerREADME
StackLayoutManager
一个可以堆叠的LinearLayoutManager
| 动态图 | 静态图 |
| --------------------------------------- | ------------------------------------------------------------ |
|
|
|
导入依赖
添加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
)
Related Skills
node-connect
351.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
