Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

simplepeng/MaxLineLayoutManager

Open more actions menu

Repository files navigation

MaxLineLayoutManager

当itemCount超过设定数量就固定高度的LayoutManager,类似maxHeight

导入依赖

maven { url 'https://www.jitpack.io' }
implementation 'com.github.simplepeng:MaxLineLayoutManager:v1.0.0'

使用

recyclerView.layoutManager = MaxLineLinearLayoutManager(this, maxLine = 3)
recyclerView.adapter = ....

可用LayoutManager

  • MaxLineLinearLayoutManager
  • MaxLineGridLayoutManager
  • MaxLineStaggeredGridLayoutManager

版本迭代

  • v1.0.0:首次上传

About

🔥🔥🔥 - 当itemCount超过设定数量就固定高度的LayoutManager,类似maxHeight

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.