Coder Social home page Coder Social logo

SVGImageView Flicker about androidsvg HOT 3 CLOSED

m1cha avatar m1cha commented on July 21, 2024
SVGImageView Flicker

from androidsvg.

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
Hi Shawn, thanks for the report.

This is due to a change in SVGImageView in 1.2.2.  The SVGs are now loaded and 
parsed asynchronously.  Previously the load/parse was done on the UI thread, 
which has the effect of slowing done the view layout, and is actively 
discouraged by Google/Android.  SVGImageView is now doing things the right way.

Apart from it perhaps being an unexpected change for you, is it actually 
causing any problems?  We are doing things in the recommended way now, so this 
behaviour will probably not be changing.

If you need different behaviour, you have the option of loading all the SVGs 
yourself and calling setSVG() on each view once they are all loaded.


Original comment by [email protected] on 15 Aug 2014 at 8:15

from androidsvg.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
I figured it was because of the asynchronous change. Other than the aesthetic 
difference it doesn't have any actual problems. So I guess I'll just leave it 
or manually handle the SVGs to prevent the delay.

Original comment by [email protected] on 15 Aug 2014 at 8:42

from androidsvg.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024

Original comment by [email protected] on 15 Aug 2014 at 8:46

  • Changed state: Invalid

from androidsvg.

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.