android - 安卓APP退到后台后重新进入,底部tab切换失效
伊谢尔伦
伊谢尔伦 2017-04-17 17:19:09
0
5
790

1、APP正常启动后,底部tab切换界面是没问题。
2、例如当前页面是首页,返回桌面,再进入后,底部tab切换失效了。切换的动作正常执行(调接口等操作正常运行),但界面一直留在首页。

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(5)
左手右手慢动作

1. Write a method, call it in onstop, save the current page cache when exiting, and just do it in onResum.
2. In onResume, reload the layout, especially the content that uses adapters or background data filling. Need to redraw.
3.Static

Ty80

There must be a bug somewhere in the code, let’s debug it carefully.

黄舟

It’s best to post your implementation code. I can’t imagine where your problem lies.

Ty80

You can pay attention to two points: static variables and fragments with parameters. If the above are used, problems will occur when the application is recycled and rebuilt.

Peter_Zhu

It feels like I don’t want to be recycled either

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template