imxy
imxy
android.view.WindowManager$BadTokenException Unable to add window -- token android.os.BinderProxy@29c341ea is not valid; is your activity running? android.view.ViewRootImpl.setView(ViewRootImpl.java:673)  从bugly来看,主要是oppo的7.1机型报错,搜索了下相关问题,好像确实oppo的问题比较多 https://segmentfault.com/q/1010000012340763 参考这个问题 然后我使用了 https://github.com/drakeet/ToastCompat 暂时解决。。。
 xml设置 app:pr_start_angle="164" app:pr_sweep_angle="211" 因为 你的unitAngle 是float类型,在计算时出现了精度损失, 修正:unitAngle 改成Double 类型