Code Monkey home page Code Monkey logo

Comments (10)

ismaeldivita avatar ismaeldivita commented on May 30, 2024

Thanks for the report.

Are you able to reproduce this lag on the sample app?
Did you try to isolate your callback action to make sure is the menu which is causing the lag?

from chip-navigation-bar.

jashasweejena avatar jashasweejena commented on May 30, 2024

I noticed that it happens only when I use a recyclerview(via fastadapter) in the same layout as the chipnavigationbar. I tried removing the recyclerview and the animations were smooth.

I hope you could help me out.

from chip-navigation-bar.

ismaeldivita avatar ismaeldivita commented on May 30, 2024

I was not able to reproduce the lag issues during the animations. Please push a sample repository with your problem or give me more details like your XML layouts and how you're creating the recyclerview.

from chip-navigation-bar.

jashasweejena avatar jashasweejena commented on May 30, 2024

Okay, sure!

from chip-navigation-bar.

ismaeldivita avatar ismaeldivita commented on May 30, 2024

Closing due inactivity. Feel free to reopen if you still facing the problem

from chip-navigation-bar.

ismaeldivita avatar ismaeldivita commented on May 30, 2024

I was only able to reproduce this when during a fragment transaction with some heavy layouts.

But I don't think it's a problem from the library side. I found similar issues on DrawerLayout from Google when the user interacts with the menu and an animation to close the panel is being performed.

Some menu animations get lags when it runs at the same time when you're performing a FragmentTransaction. You can turnaround this issue by avoiding performing all your UI inflation and binding right after the menu selection.

from chip-navigation-bar.

nekooei avatar nekooei commented on May 30, 2024

I got this problem too,
I solve this by running a handler with postDelay function after finish the animation of changing button states and then attach fragments
but I think we can solve this problem inside the library side
this could be a big UI/UX issue for who are using this library

from chip-navigation-bar.

oussamalahrizi avatar oussamalahrizi commented on May 30, 2024

hey did it fix on this latest version 1.3.4 ?

from chip-navigation-bar.

ismaeldivita avatar ismaeldivita commented on May 30, 2024

No. There is no solution for this issue on the library side yet.
If you're facing lag for heavy layouts during fragment transactions I recommend in some way to schedule these heavy operations behind a delay, loader, transition, or skeleton screens.

from chip-navigation-bar.

milon27 avatar milon27 commented on May 30, 2024

I got this problem too,
I solve this by running a handler with postDelay function after finish the animation of changing button states and then attach fragments
but I think we can solve this problem inside the library side
this could be a big UI/UX issue for who are using this library

bro would you provide the example code for doing this?
@nekooei

from chip-navigation-bar.

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.