Comments (6)
fixed in version 1.0.4
from qmui_android.
请问下这个问题是怎么解决的,源码没看到相关的代码啊
from qmui_android.
之前的这个提交在support版本27之前是可以正常工作的。但是27版本support包更改了fragmentManager的实现。之前的fix也失效了。
之所以有问题,是因为我想复用View,就是切换到新界面再切换回来,View不用重新构造。bug造成的原因是View 的 dettach 和 attach 遇到动画会出现混乱,我在这里又记录
升级到support 27后,原本的 hack 修复已经不能正常使用,只得放弃复用view,将onCreate的逻辑移到onCreateView中
from qmui_android.
嗯,感谢回复,我也复用了view出现的这个问题,但是不复用view的话使用fragment replace的方式打开新的fragment并add回退栈,然后popBackStack就会导致上一个页面的动态加载的一些view和数据丢失,目前准备使用hide、show来解决,不知有没有更好的方式
from qmui_android.
之前的版本的hack解决方式也看到了,但是如你所说在新版的support中失效了
from qmui_android.
onResume里重新绑定数据到View上就可以了吧
from qmui_android.
Related Issues (20)
- 吐槽一下:你们真的好偏爱IOS HOT 1
- 轻问2.0.0view都支持rtl了吗
- 编译不过
- git'' finished with non-zero exit value 128 HOT 1
- 可见第一个item侧滑删除问题
- 官网都打不开了啊,请问你们都是怎么看文档的啊 HOT 5
- 配置好项目的时候,点运行就爆Could not resolve all files for configuration ':app:debugRuntimeClasspath'. HOT 1
- 深色模式,跟随系统时键盘会切换深色;APP内手动选择,键盘无法切换。试了微信读书也无法正常切换键盘深色模式。
- # 吐槽
- 鸿蒙3.0.0适配问题
- 分支介绍 HOT 1
- Bottom sheet 内 跳转页面隐藏弹窗 黑色蒙层还在 回调dialog state为2
- qmui_ptr_auto_refresh not found.
- (part sticky header + viewpager) 接口请求数据如何刷新RecyclerView
- 还有在维护吗? 官网打不开 HOT 9
- 关于运行qmuidemo的注意事项 HOT 2
- 快速滑动页面崩溃No virtual method formatted HOT 2
- > ```
- QMUITabSegment2如何设置选中时的tab背景呢,通过设置indicator和setSelectedDrawable总是把文字覆盖住
- 大佬们,更新下版本吧,别只给内部人员框框用,既然对外发布就彻底点,能不能一致对待
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qmui_android.