Comments (7)
这个是由于viewpager的预加载机制所造成的,正因为每次都destroy了,所在下次才需要再lazyLoad里面加载数据
from viewpagerfragmentlazyload.
在fragment来回切换的时候,还是依然在不停的destory,和lazyLoad呀
有没有好的方案来处理这种情况 数据每次都会重新请求
from viewpagerfragmentlazyload.
在lazyload方法里面只有回调一次啊
from viewpagerfragmentlazyload.
在lazyload方法里面只有回调一次啊
如果多个fragment 滑动的话 那每次界面 接口来回滑动的话 都要重新去画界面 请求接口 这样很耗费资源
from viewpagerfragmentlazyload.
不管你如何滑动,在lazyload方法里面只会回调一次啊
from viewpagerfragmentlazyload.
不管你如何滑动,在lazyload方法里面只会回调一次啊
当fragment来回切换时,它会重复请求网络数据 这个怎么去优化的呢
from viewpagerfragmentlazyload.
@yinking1203 你不让fragment滑动每次销毁了就是了
from viewpagerfragmentlazyload.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from viewpagerfragmentlazyload.