HirayClay / StackLayoutManager

:neckbeard:customized layoutmanager,let item pile up like stackview/类似最美有物卡片堆叠效果
452 stars 64 forks source link

Align.RIGHT 时,config.initialStackCount 没用 #3

Closed RenVeCf closed 5 years ago

RenVeCf commented 6 years ago

Hi~ 你好,我发现 Align.RIGHT 时,config.initialStackCount = ? 这是变量并没有用,那么怎么修改开始图片的index呢??

HirayClay commented 6 years ago

主要是初始计算的initialOffset没有针对RIGHT align传入负号,之前没有考虑到,已经改了,在orientation分支,不好意思哈

RenVeCf commented 6 years ago

你好,我们知道从服务器获取图片时是从List的0开始, 但 StackLayoutManager 的 index 顺序是从右向左,我需要从左向右放入图片时,应该怎么做?

liusong001 commented 6 years ago

请问怎么样可以获取到当前页的position?

HirayClay commented 6 years ago

没有从右向左呀,你可以改变排列方式呀,默认就是从左到右的;至于获取当前页的postion,确实没有提供

liusong001 commented 6 years ago

嗯,我已经在你的代码中获取到了,当前position

18516106381 邮箱:18516106381@163.com

签名由 网易邮箱大师 定制

在2018年02月23日 09:11,HirayClay 写道:

没有从右向左呀,你可以改变排列方式呀,默认就是从左到右的;至于获取当前页的postion,确实没有提供

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.