buder

0822

1.平分布局
https://stackoverflow.com/questions/4961355/percentage-width-in-a-relativelayout

2.
Timer 的 schedule()方法
https://blog.csdn.net/tiancizhenai/article/details/7050302

3.Android 定时任务的多种实现方式
https://blog.csdn.net/u014492609/article/details/51475254

Android计时器,实现隔几秒执行一次需求
https://blog.csdn.net/qq_31450487/article/details/73614251


4.Android 控件显示在最上层的方法
https://blog.csdn.net/qq_36773157/article/details/73565018


崩溃:
08-23 03:28:40.462 27785 27785 D AndroidRuntime: Shutting down VM
--------- beginning of crash
08-23 03:28:40.465 27785 27785 E AndroidRuntime: FATAL EXCEPTION: main
08-23 03:28:40.465 27785 27785 E AndroidRuntime: Process: com.example.fake_hago_2, PID: 27785
08-23 03:28:40.465 27785 27785 E AndroidRuntime: java.lang.IllegalStateException: Timer already cancelled.
08-23 03:28:40.465 27785 27785 E AndroidRuntime: at java.util.Timer.sched(Timer.java:397)
08-23 03:28:40.465 27785 27785 E AndroidRuntime: at java.util.Timer.scheduleAtFixedRate(Timer.java:328)
08-23 03:28:40.465 27785 27785 E AndroidRuntime: at com.example.fake_hago_2.view.FlashAvaterView$2.onClick(FlashAvaterView.java:81)
08-23 03:28:40.465 27785 27785 E AndroidRuntime: at android.view.View.performClick(View.java:6256)
08-23 03:28:40.465 27785 27785 E AndroidRuntime: at android.view.View$PerformClick.run(View.java:24697)
08-23 03:28:40.465 27785 27785 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:789)
08-23 03:28:40.465 27785 27785 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:98)
08-23 03:28:40.465 27785 27785 E AndroidRuntime: at android.os.Looper.loop(Looper.java:164)
08-23 03:28:40.465 27785 27785 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6541)

 

Timer类中的"Timer already cancelled."
说一个可以排查的点,就是timer在执行任务的过程中如果抛出了RuntimeException,并且接着又去执行另一个新任务时,会认定定时器已经取消,产生这个异常,所以可以在定时任务之间排查是否有异常抛出。

 


一篇博客理解Recyclerview的使用 - CSDN博客
https://blog.csdn.net/u012124438/article/details/53495951

防止错乱!!!!
https://www.2cto.com/kf/201607/522038.html


使用recyclerview实现倒计时


使用recyclerview错乱

 


https://blog.csdn.net/lichongya/article/details/51484863

https://www.2cto.com/kf/201607/522038.html

https://www.zhihu.com/question/38161013

posted on 2018-08-25 15:59  buder  阅读(380)  评论(0编辑  收藏  举报

导航