NiceCoder

Results 4 comments of NiceCoder

我尝试改了下,在OnTouchEvent()里面,加上刷新的判断。刷新完成后再将hasRefresh置为false..这样可以保存上次的刷新状态。再次下拉后不会重新开始刷新了 1: //回调onDropAnim接口 if (!hasRefresh) { Log.d("tanjunwen", "onTouchEvent: 2"); callOnDropAnim(); //回调callOnPreDrag接口 callOnPreDrag(); //回调onLimitDes接口 callOnLimitDes(); isFirst = false; } 2: case MotionEvent.ACTION_UP: if (!hasRefresh) { restSmartPosition(); isFirst = true; _firstDrag =...

![image](https://user-images.githubusercontent.com/14955364/62766954-2cd5a280-bac6-11e9-9f36-160c8b10881a.png) 建议你在根activity 重写onSaveInstanceState 然后注释掉super.onSaveInstanceState(outState) 根治你的一切重启为空的问题。

![image](https://user-images.githubusercontent.com/14955364/62758597-72d43b80-bab1-11e9-970e-3cbe0c49a101.png) 关于你的这种场景我也有 也是通过发送eventbus来启动登录界面 但我的不会有残影 我的启动方式这样的 加了启动模式SINGLETASK, 同时判断栈顶是否已经存在 如果存在就不启动 你可以参考下 看下能否解决你的问题

> 没有配置正确jdk环境变量吧,在cmd中执行下java --version看能看到java版本号不 同样的问题 截图如下 ![Image](https://github.com/user-attachments/assets/fde90e07-60c1-41c0-8f7f-bf6f120694ed)