Comments (9)
我自己的项目从来没出现过哦,我不知道你的实现方式,能提供个简单的 demo 吗
from banner.
可以的,描述就是我提的那样,然后我换了好几个banner框架好像都有这样的情况,就是切换tab后再切换回来,banner里的图片就没了。我现在是在fragment的setUserVisibleHint方法里可见时重新banner.update()临时解决的。
from banner.
@chshp1234 其实我的猜测是你的逻辑有点问题,而且你说的这个 tab+viewpager+fragment 是要用到懒加载的,懒加载处理好是一定不会出现这个情况的
from banner.
这是刚加载时的正常页面,首页是RV嵌套多TYPE(刚开始使用scrollview嵌套的,情况一样)。
这是我切换tatab(切换后面几个tab)后再切换回首页时的banner情况
from banner.
(不好意思图有点大)
现在我是这样解决的,您看看。
起码来回切换是没问题了,但是不知道是banner的问题还是我在使用上有什么没做好的地方
from banner.
@chshp1234 有解决方案是最好的,然后你的这个问题我准备最近直接上个 demo ,到时候你可以参照那个对比你的代码
from banner.
@chshp1234 有解决方案是最好的,然后你的这个问题我准备最近直接上个 demo ,到时候你可以参照那个对比你的代码
好多谢了
from banner.
@chshp1234 最近比较忙,现在才更新 demo,欢迎使用新版本
from banner.
我用了最新版本的banner,然后LazyFragment用的也是你的,但是还是会出现banner划着划着会出现空白的情况,操作流程:导航栏我有四个按钮,banner在第一个fragment,然后我点击第四个fragment,在里面跳转了一个界面,然后返回,再点到第一个fragment,滑动banner,会出现空白
from banner.
Related Issues (20)
- 能提供adapter的获取方法么 HOT 1
- 太耗时
- 为啥isStart 一直是false HOT 1
- 您好,能嵌套在recycleview中使用吗?比如在九宫格图片展示的recycleView, 每个格子的图片可以轮播
- 可否设置滑动方向,水平Or垂直
- bug
- 如果项目的compileSdkVersion<28的话,编译会报error: failed linking references. HOT 1
- The application's PagerAdapter changed the adapter's contents without calling PagerAdapter HOT 3
- 设置两端缩进属性,手动进行滑动时出现侧面没有正常缩小的问题 HOT 4
- 性能能否优化一下,当滑动的多了,有时候滑动的时候页面就是空白的 HOT 18
- page_right_margin page_left_margin 设置值比较大时,设置的区域 无法互动 HOT 1
- 你好,怎么滑动到某个页面,setCurrentPage无效? HOT 1
- 右端缩进模式,当图片滑到最后一张能变成左端缩进吗? HOT 6
- license HOT 1
- 手动滑动的多了,会出行空白页
- 有副标题的需求,应该怎么搞 HOT 1
- 复杂页面轮播时debug包正常 release包内存飙升卡顿
- 两端缩进依然有问题! HOT 5
- page_left_margin 如何动态设置
- 能否支持指示器放在banner外部
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 banner.