Giter Club home page Giter Club logo

Comments (6)

cgspine avatar cgspine commented on August 18, 2024

fixed in version 1.0.4

from qmui_android.

fuhaodev avatar fuhaodev commented on August 18, 2024

请问下这个问题是怎么解决的,源码没看到相关的代码啊

from qmui_android.

cgspine avatar cgspine commented on August 18, 2024

之前的这个提交在support版本27之前是可以正常工作的。但是27版本support包更改了fragmentManager的实现。之前的fix也失效了。

之所以有问题,是因为我想复用View,就是切换到新界面再切换回来,View不用重新构造。bug造成的原因是View 的 dettach 和 attach 遇到动画会出现混乱,我在这里又记录

image

升级到support 27后,原本的 hack 修复已经不能正常使用,只得放弃复用view,将onCreate的逻辑移到onCreateView中

from qmui_android.

fuhaodev avatar fuhaodev commented on August 18, 2024

嗯,感谢回复,我也复用了view出现的这个问题,但是不复用view的话使用fragment replace的方式打开新的fragment并add回退栈,然后popBackStack就会导致上一个页面的动态加载的一些view和数据丢失,目前准备使用hide、show来解决,不知有没有更好的方式

from qmui_android.

fuhaodev avatar fuhaodev commented on August 18, 2024

之前的版本的hack解决方式也看到了,但是如你所说在新版的support中失效了

from qmui_android.

cgspine avatar cgspine commented on August 18, 2024

onResume里重新绑定数据到View上就可以了吧

from qmui_android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.