woshidasusu / base-module Goto Github PK
View Code? Open in Web Editor NEW常用组件,快速开发框架(blur, fresco, volley, crash, log, ftp, update...)
License: Apache License 2.0
常用组件,快速开发框架(blur, fresco, volley, crash, log, ftp, update...)
License: Apache License 2.0
java.lang.IllegalStateException: The current thread must have a looper!
at android.view.Choreographer$1.initialValue(Choreographer.java:102)
at android.view.Choreographer$1.initialValue(Choreographer.java:97)
at java.lang.ThreadLocal$Values.getAfterMiss(ThreadLocal.java:430)
at java.lang.ThreadLocal.get(ThreadLocal.java:65)
at android.view.Choreographer.getInstance(Choreographer.java:232)
at android.view.RenderNodeAnimator$DelayedAnimationHelper.<init>(RenderNodeAnimator.java:437)
at android.view.RenderNodeAnimator.getHelper(RenderNodeAnimator.java:421)
at android.view.RenderNodeAnimator.end(RenderNodeAnimator.java:254)
at android.graphics.drawable.RippleComponent$RenderNodeAnimatorSet.end(RippleComponent.java:334)
at android.graphics.drawable.RippleComponent.endHardwareAnimations(RippleComponent.java:237)
at android.graphics.drawable.RippleComponent.draw(RippleComponent.java:160)
at android.graphics.drawable.RippleDrawable.drawBackgroundAndRipples(RippleDrawable.java:899)
at android.graphics.drawable.RippleDrawable.draw(RippleDrawable.java:700)
at android.view.View.drawBackground(View.java:16409)
at android.view.View.draw(View.java:16208)
at android.view.View.draw(View.java:16129)
at android.view.ViewGroup.drawChild(ViewGroup.java:3612)
at androidx.coordinatorlayout.widget.CoordinatorLayout.drawChild(CoordinatorLayout.java:1246)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3402)
at android.view.View.draw(View.java:16127)
at android.view.ViewGroup.drawChild(ViewGroup.java:3612)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3402)
at android.view.View.draw(View.java:16127)
at android.view.ViewGroup.drawChild(ViewGroup.java:3612)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3402)
at android.view.View.draw(View.java:16127)
at android.view.ViewGroup.drawChild(ViewGroup.java:3612)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3402)
at android.view.View.draw(View.java:16127)
at android.view.ViewGroup.drawChild(ViewGroup.java:3612)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3402)
at android.view.View.draw(View.java:16127)
at android.view.ViewGroup.drawChild(ViewGroup.java:3612)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3402)
at android.view.View.draw(View.java:16127)
at android.view.ViewGroup.drawChild(ViewGroup.java:3612)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3402)
at android.view.View.draw(View.java:16127)
at android.view.ViewGroup.drawChild(ViewGroup.java:3612)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3402)
at android.view.View.draw(View.java:16127)
at android.view.ViewGroup.drawChild(ViewGroup.java:3612)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3402)
at android.view.View.draw(View.java:16127)
at android.view.ViewGroup.drawChild(ViewGroup.java:3612)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3402)
at android.view.View.draw(View.java:16220)
at com.android.internal.policy.PhoneWindow$DecorView.draw(PhoneWindow.java:2690)
at com.dasu.blur.BlurHelper.getViewBitmap(BlurHelper.java:122)
at com.dasu.blur.BlurHelper.calculateSourceBitmap(BlurHelper.java:103)
at com.dasu.blur.BlurHelper.access$000(BlurHelper.java:28)
at com.dasu.blur.BlurHelper$1.run(BlurHelper.java:36)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)
class BlurDemoAct :AppCompatActivity(){
companion object Factory {
@JvmStatic
fun start(activity: AppCompatActivity) {
activity.startActivity(Intent(activity, BlurDemoAct::class.java))
}
}
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_blur_demo)
//异步模糊,将drawable资源文件中的图片以 NATIVE 方式进行模糊,注册回调,完成时手动显示到 imageView1 控件上
DBlur.source(this, R.drawable.ic_loading_pre).mode(BlurConfig.MODE_NATIVE).build()
.doBlur(object : OnBlurListener {
override fun onBlurSuccess(bitmap: Bitmap) {
iv1.setImageBitmap(bitmap)
}
override fun onBlurFailed() { //do something
}
})
}
}
#####################################################################################################################################################
2020-04-07 14:37:29.087 1680-3226/? E/ActivityTrigger: activityStartTrigger: not whiteListedcom.demo.tool/com.demo.tool.MainActivity/1
2020-04-07 14:37:29.088 1680-3226/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.demo.tool/com.demo.tool.MainActivity/1
2020-04-07 14:37:29.093 1680-3226/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.demo.tool/com.demo.tool.MainActivity/1
2020-04-07 14:37:29.296 14609-14635/? E/InterceptorFactory: NameNotFoundException
android.content.pm.PackageManager$NameNotFoundException: com.miui.contentcatcher
at android.app.ApplicationPackageManager.getPackageInfoAsUser(ApplicationPackageManager.java:174)
at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:145)
at miui.contentcatcher.InterceptorFactory.getInterceptorPackageInfo(InterceptorFactory.java:80)
at miui.contentcatcher.InterceptorFactory.initInterceptorClass(InterceptorFactory.java:99)
at miui.contentcatcher.InterceptorFactory.createInterceptor(InterceptorFactory.java:41)
at miui.contentcatcher.InterceptorProxy$H.handleMessage(InterceptorProxy.java:323)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:173)
at android.os.HandlerThread.run(HandlerThread.java:65)
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.