yangchaojiang / demoloadview Goto Github PK
View Code? Open in Web Editor NEW切换加载中,加载失败,加载成功布局,定义一个LoadViewHelper所有界面通用,通同时也支持单个自定义无需添加布局中view, 大大降低耦合性
切换加载中,加载失败,加载成功布局,定义一个LoadViewHelper所有界面通用,通同时也支持单个自定义无需添加布局中view, 大大降低耦合性
com.example.com.myapplication.App
项目中点击重试按钮后一直卡在loading界面
用下面这段代码测试了下
发现最后一个应该显示error界面,实际却显示loading界面了。
mLoadViewHelper = new LoadViewHelper(mViewPager);
mLoadViewHelper.showLoading();
mLoadViewHelper.showError("加载失败","重试");
mLoadViewHelper.showLoading();
mLoadViewHelper.showError("加载失败","重试");
mLoadViewHelper.showLoading();
mLoadViewHelper.showError("加载失败","重试");
瞅了下源码没理解,哈哈,望解惑。
new LoadViewHelper(((ViewGroup)findViewById(android.R.id.content)).getChildAt(0))
当activity里面有fragment的话就崩
有什么方法吗
Process: test_webview_demo.example.com.myapplication, PID: 25531
java.lang.RuntimeException: Unable to instantiate application com.example.com.myapplication.App: java.lang.ClassNotFoundException: Didn't find class "com.example.com.myapplication.App" on path: DexPathList[[zip file "/data/app/test_webview_demo.example.com.myapplication-1/base.apk"],nativeLibraryDirectories=[/data/app/test_webview_demo.example.com.myapplication-1/lib/arm64, /vendor/lib64, /system/lib64]]
at android.app.LoadedApk.makeApplication(LoadedApk.java:680)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6395)
at android.app.ActivityThread.access$1800(ActivityThread.java:229)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1887)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:7325)
at
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.