henryblue / TvRecyclerView

A custom RecyclerView for Android TV end
Apache License 2.0
7 stars 4 forks source link

请教个问题 #3

Closed renwfy closed 7 years ago

renwfy commented 7 years ago

水平宽度不定。我设置了30列,这样会超出屏幕宽度。多余的item自动排在下一行,怎么实现呢?

henryblue commented 7 years ago

这个需要自己去自定义相关逻辑的layoutManager, 在layoutChildren中去处理, 如果单行排不下,就换行layout