如何禁用Viewpager中的预加载下一页? [英] how to disable preloading nextpage in Viewpager?
问题描述
如何禁用Viewpager中的页面预加载?
How do I disable page pre loading in Viewpager??
我尝试过
viewPager.setOffscreenPageLimit(0)
但是它不起作用.
推荐答案
看看此.
根据 Ali Imran ,您可以尝试
这篇关于如何禁用Viewpager中的预加载下一页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!setCount()
getCount()
函数中返回计数变量pageScroll()
函数时,
用户翻转页面,您可以调用setCount()
来增加
计数变量的计数
setCount()
getCount()
function of Adapter return the count variablepageScroll()
function of the ViewPager when the
user flips the page you can call the setCount()
to increase the
count of the count variable