youxilua / waterfall4android Goto Github PK
View Code? Open in Web Editor NEWandroid瀑布流
android瀑布流
试了一下你的源码,加载图片的时候,还是会导致OOM异常。
每页的图片顺序是随机的吗?并没有像原作那样顺序排列?
貌似是把小图先加载进去的?我看到小图都在前面.
看你在代码里写的,是通过
(int) Math.ceil(waterfall_scroll.loaded_count / (double) column_count)
来这是item在第几行.
不太懂这个到底什么意思...每列的图片不是判断最低列,进行加载的吗?
把这个放在 通知更新UI的handle 里,
mWaterFallView.lineIndex[columnIndex]++;
//所在列的行数
mFlowView.setRowIndex(mWaterFallView.lineIndex[columnIndex]);
会不会更好些?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.