Giter VIP home page Giter VIP logo

Comments (9)

wenchaosong avatar wenchaosong commented on May 31, 2024

我自己的项目从来没出现过哦,我不知道你的实现方式,能提供个简单的 demo 吗

from banner.

chshp1234 avatar chshp1234 commented on May 31, 2024

可以的,描述就是我提的那样,然后我换了好几个banner框架好像都有这样的情况,就是切换tab后再切换回来,banner里的图片就没了。我现在是在fragment的setUserVisibleHint方法里可见时重新banner.update()临时解决的。

from banner.

wenchaosong avatar wenchaosong commented on May 31, 2024

@chshp1234 其实我的猜测是你的逻辑有点问题,而且你说的这个 tab+viewpager+fragment 是要用到懒加载的,懒加载处理好是一定不会出现这个情况的

from banner.

chshp1234 avatar chshp1234 commented on May 31, 2024

banner0
这是刚加载时的正常页面,首页是RV嵌套多TYPE(刚开始使用scrollview嵌套的,情况一样)。
banner1
这是我切换tatab(切换后面几个tab)后再切换回首页时的banner情况

from banner.

chshp1234 avatar chshp1234 commented on May 31, 2024

(不好意思图有点大)
现在我是这样解决的,您看看。
banner2
banner3
起码来回切换是没问题了,但是不知道是banner的问题还是我在使用上有什么没做好的地方

from banner.

wenchaosong avatar wenchaosong commented on May 31, 2024

@chshp1234 有解决方案是最好的,然后你的这个问题我准备最近直接上个 demo ,到时候你可以参照那个对比你的代码

from banner.

chshp1234 avatar chshp1234 commented on May 31, 2024

@chshp1234 有解决方案是最好的,然后你的这个问题我准备最近直接上个 demo ,到时候你可以参照那个对比你的代码

好多谢了

from banner.

wenchaosong avatar wenchaosong commented on May 31, 2024

@chshp1234 最近比较忙,现在才更新 demo,欢迎使用新版本

from banner.

Waterelone avatar Waterelone commented on May 31, 2024

我用了最新版本的banner,然后LazyFragment用的也是你的,但是还是会出现banner划着划着会出现空白的情况,操作流程:导航栏我有四个按钮,banner在第一个fragment,然后我点击第四个fragment,在里面跳转了一个界面,然后返回,再点到第一个fragment,滑动banner,会出现空白

from banner.

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.