yuyashuai / FrameAnimation

High-Performance Frame Animation Library For Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

动画文件都顺序是乱都

junixapp opened this issue · comments

commented

贴下文件?

commented

我看源码中并没有保证动画顺序的机制,只根据文件顺序不可靠

默认通过Collections.sort(List list)默认排序,只要文件名符合规律,排序就是可靠的。
要保证文件名长度一直,正确的命名方式应该是01,02,03...10,11,12...20,21,22。
不应该是1,2,3...10,11,12...20,21,22这种排序后将会变成1,10,11..2,20,21,22...3,30,31,32。