Code Monkey home page Code Monkey logo

Comments (6)

ongakuer avatar ongakuer commented on August 21, 2024

Sample 是否出现同样的情况?

from photodraweeview.

tanshion avatar tanshion commented on August 21, 2024

image
在class Attacher 的checkMatrixAndInvalidate() 添加draweeView.getRootView().invalidate();可以解决

from photodraweeview.

ongakuer avatar ongakuer commented on August 21, 2024

我这边使用 Android 6.0 并没有出现重影,小米5也没有出现。 出现截图的情况可能与你在使用 PhotoDraweeView 时外层的 Layout 有关系。

调用 draweeView.getRootView().invalidate() ,通知 RootView 重绘的解决办法不太友好,对于已经使用这个控件的用户可能会有性能影响。

如果一定要刷新外层view,可以试试在外部调用 draweeView.getViewTreeObserver().addOnPreDrawListener(listener),在 listener 内部通知 RootView 重绘

from photodraweeview.

tulongchao avatar tulongchao commented on August 21, 2024

按照你的方法确实确实解决了,这个现在在vivo X7上也会出现的

from photodraweeview.

tulongchao avatar tulongchao commented on August 21, 2024

还是要感谢一下啊。

from photodraweeview.

ongakuer avatar ongakuer commented on August 21, 2024

不客气

from photodraweeview.

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.