Git Product home page Git Product logo

Comments (3)

cachapa avatar cachapa commented on June 29, 2024

A layout pass is called on the parent layout for each frame of the expansion/collapse animation. This operation can be expensive if your parent layout is too complex (if it has too many children, or very complex views, such as a mapview or a webview).

If you're having problems with performance you can try simplifying your parent layout, or disabling the animation on older devices.

from expandablelayout.

pepela avatar pepela commented on June 29, 2024

I don't think problem is with layout as same one works without problem on other devices (Pixel xl, Axon 7, galaxy s3) but has horrible performance on Nexus 7

from expandablelayout.

cachapa avatar cachapa commented on June 29, 2024

I assume you're talking about the original Nexus 7 which has horrible performance in general.
Honestly I don't think it's useful to spend much time optimizing code for very old devices, unless you have a lot of users with devices that are 5+ years old.

In any case this isn't a problem with ExpandableLayout. I've tried to make the expansion as efficient as possible, but the fact is that you need to perform a layout pass on the parent layout for each frame and that operation is inherently expensive on Android due to how the system is designed.

As I said above, if this is an important issue for you, you could try disabling animations on old devices.

from expandablelayout.

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.