Git Product home page Git Product logo

Comments (8)

LuckyJayce avatar LuckyJayce commented on July 20, 2024

你显示图片比较大么?为什么需要我这个。
简单点的话,你可以RecyclerView实现,getCount 值int最大值,设置position在中间,就达到了类似可以无限的效果
麻烦点的话,就自己自定义View,View直接屏幕大,实现好像ScrollView的手势,然后再通过滚动的位置去计算显示的图片区域

from largeimage.

LandChanning avatar LandChanning commented on July 20, 2024

是很大的全景图,我最开始也是直接自定义View,然后根据手势使用BitmapRegionDecoder去截取不同的图片显示,但是很卡,性能很差。

你的库在性能和缓存方面给了我很大的提示,所以想借鉴图片加载的方式。

只是在滑动到边界位置如何计算并显示图片块,卡住了,不知道怎么处理。。。

from largeimage.

LuckyJayce avatar LuckyJayce commented on July 20, 2024

我不明白的是为什么是添加两个LargeImageView
你全景图到底要显示几个啊

from largeimage.

LandChanning avatar LandChanning commented on July 20, 2024

就一个啊,但是滑到边界还不知怎么处理,领导又要看效果,所以先用了两个LongImageView2来实现循环的效果。

就是滑到3/4的位置时,将前面的移除,然后再后面添加一个,权宜的做法。

现在想找更好的做法。

from largeimage.

LuckyJayce avatar LuckyJayce commented on July 20, 2024

我上面说的RecyclerView方案不行么?

from largeimage.

LandChanning avatar LandChanning commented on July 20, 2024

如果用RecyclerView的话,是先把图片裁成一些块,然后填充到item中吗?

from largeimage.

LuckyJayce avatar LuckyJayce commented on July 20, 2024

一个LongImageView2作为一个item啊
一个图片用一个LongImageView2显示

from largeimage.

LandChanning avatar LandChanning commented on July 20, 2024

好的,我试下,谢谢

from largeimage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.