John Lee

Results 2 issues of John Lee

新项目(基于AndroidX,依赖版本普遍比较新)需要实现类似SmartRefreshLayout嵌套CoordinatorLayout嵌套RecyclerView的效果,我直接参考了 `NestedScrollExampleFragmentIntegral`这个页面的实现,发现手指放在RecyclerView上时,没法一步到位触发下拉刷新和上拉加载更多,需要先把列表拉到顶部,松开手指后再下拉,才能触发刷新。 折腾了一天,没找出哪里有问题,demo那里还套了层ViewPager,我这只有个RecyclerView,不应该啊。 最后瞄了下SmartRefreshLayout里面gradle的配置,嗯?好像没看到AndroidX,还用的support包,怀疑有没有可能是依赖的问题,于是把SmartRefreshLayout升级到AndroidX。 没升级AndroidX前,部分依赖是这样的: ``` implementation 'com.android.support:design:28.0.0' implementation 'com.android.support.constraint:constraint-layout:1.1.3' ``` 自动升级AndroidX后,部分依赖的版本还是比较老的,如下: ``` implementation 'com.google.android.material:material:1.0.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' ``` 解决gradle某些异常后,运行,没问题,跟原demo一样,能正常一步到位触发下拉。 后面升级依赖: ``` implementation 'com.google.android.material:material:1.4.0' // 实际上升级到1.1.0就出问题了 implementation 'androidx.constraintlayout:constraintlayout:2.1.3' ``` 运行后,出现了跟我那个项目一样的情况,得拉倒顶部松开再拉一次才能触发刷新,如图: ![新依赖](https://raw.githubusercontent.com/licheedev/filestore/master/img/feedback/SmartRefreshLayout2.gif)...

系统环境是unraid上虚拟的Windows7旗舰版64位,j4125 4个核心全部启用,内存分配4G。 服务端版本是最新的windows_x86v0.32.3,运行参数使用教程的 > proxy_server.exe -i1000 -o1000 -w8 服务端运行一段时间后,在空闲情况下,有几率会出现服务端进程持续占用25%CPU资源,不会升高也不会降低,只能通过杀进程解决。 我是昨天下午才部署的服务端,这种持续占用25%CPU的情况,已经出现过两次。 ![1](https://github.com/lazy-luo/smarGate/assets/10960780/0e491a7f-7681-4e45-bef6-28ade8d450f6) ![2](https://github.com/lazy-luo/smarGate/assets/10960780/0d8a18b0-7d58-46bd-bda4-cdd5f4abec0a)