Comments (8)
我解决了这个bug,在MaterialHeadView或者MaterialFoodView里面的onAttachedToWindow中,设置circleProgressBar.setVisibility(GONE);
addView(circleProgressBar);
然后在onRefreshing的时候设置circleProgressBar.setVisibility(VISIBLE);
最后刷新完成后在onComlete里面设置隐藏circleProgressBar.setVisibility(GONE);
from android-materialrefreshlayout.
与你的情况类似,
我是在 FragmentTabHost
中的某个Fragment
中使用该组件,
这个Fragment做过些简单的处理,实现了类似ViewPager
懒加载的效果,即切换到其他tab(Fragment)再切回来时,保持着切走前的UI状态。
在这种情况下,出现了相同的症状。
from android-materialrefreshlayout.
The refresh icon will show when i switch from fragment back.
from android-materialrefreshlayout.
在TabLayout中的ViewPager里面使用,同样也会出现这个问题,该怎么解决
from android-materialrefreshlayout.
我遇到的这个问题是没有给ViewPager设置缓存,通过给Viewpager设置setOffscreenPageLimit() 方法后,就不会出现下拉或者上啦的箭头了。
from android-materialrefreshlayout.
@imtianx 请问通过给 Viewpager 设置 setOffscreenPageLimit() 是设置 0 吗?除此之外 ViewPager 是否有其他配置?我设置 PageLimit 为 0 还是存在该问题
from android-materialrefreshlayout.
@hongquan66 抱歉,忘记了,这是很久前的了。你试试,但是这个缓存默认是1,最小也是1噢。
from android-materialrefreshlayout.
@imtianx 没事,谢谢啦~ 我想想其他办法
from android-materialrefreshlayout.
Related Issues (20)
- 打包时出现异常,Expected a color resource id (R.color.) but received an RGB integer HOT 3
- 上拉加载更多太容易触发了 HOT 4
- 支持自定义底部加载更多的布局吗?
- Attribute "progress_text_visibility" already defined with incompatible format.
- 第一个子布局必须要是滑动布局么,好局限啊
- 自动刷新refreshLayout.autoRefresh()问题 HOT 3
- 这个项目停止维护了?
- 建议把 dy 的触摸距离判断改成与 TouchSlop 比较而不是与0比较 HOT 5
- NullPointerException HOT 1
- Not able to scroll list while pull-to-refresh loading more data
- 进度条 红色转完以后 第二圈是绿色的时候,绿色会立马闪一下,才转绿色的那个 HOT 1
- Overlay transparent background
- refreshLayout.autoRefresh() Problem HOT 1
- How do I set the color of the progress icon? (The circular loading icon)
- 混淆都是自己写的吗?
- 一页加载两条数据怎么不触发加载更多的
- 刷新过程中,列表无法点击怎么解决?
- 1.3.0版本与这里的library库代码都不一样..... HOT 1
- 带波浪形状下拉刷新滑动到一半控件隐藏不了了
- isLoadMore(Load and Refresh From Bottom) does not show wave or curve fx
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 android-materialrefreshlayout.