Comments (2)
What is happening is when you navigate to the last tab, the first tab is being destroyed, most likely your view pager has a page limit of 1 (1 to the left and right of the current fragment), see http://developer.android.com/reference/android/support/v4/view/ViewPager.html#setOffscreenPageLimit(int). So when you jump back to the first tab, it needs to be created, kicking off its loading which displays the loading state. What you should be doing is saving the fragment states so that they can be resumed without any loading needed to be done.
from multistateview.
Ohh, thanks! Its work for me.
It seems I need to learn the basics before write applications :D
THANK YOU!
from multistateview.
Related Issues (20)
- Can not build project from CLI HOT 2
- Crash on Android 4.4.4 and older versions.
- It would be better if you can use <ViewStub> to lazy layout! HOT 2
- How to use ButterKnife to bind view from msv_emptyView HOT 2
- In the fast switch when fragment, use it (multiStateView.setViewState (STATE_LOADING))) being given. HOT 4
- the error only show Android7.0 or more HOT 3
- 当列表无数据时显示暂无数据(empty),但是再也无法下拉了 HOT 5
- How to set custom layout HOT 3
- empty_view not find childView HOT 2
- 正在加载中,能不能不遮挡子布局。 HOT 1
- click to run 'instant run', it make a error HOT 3
- Replace ViewState int constants with enums HOT 2
- JitPack generates Java 8 bytecode for the library HOT 1
- Crash in onRestoreInstanceState on sdk 21 HOT 2
- Failed to resolve: org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.60-eap-25 HOT 4
- Viewpager + 多个Fragment . crash
- Could not find com.github.Kennyc1012:MultiStateView:2.2.0. HOT 1
- 其他状态布局不能遮挡内容布局
- 打个广告:fork了扩展两个无网状态和自定义状态,便于扩展使用和明确理解
- 怎样结合ViewBinding使用? HOT 1
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 multistateview.