Comments (10)
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.
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.
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.
Okay, sure!
from chip-navigation-bar.
Closing due inactivity. Feel free to reopen if you still facing the problem
from chip-navigation-bar.
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.
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.
hey did it fix on this latest version 1.3.4 ?
from chip-navigation-bar.
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.
I got this problem too,
I solve this by running a handler withpostDelay
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)
- please help
- Solved Problem
- Remove round light background of selected icon HOT 2
- use the java ? ok?
- Found issues in 1.3.4
- How to change menu item background cololor(cnb_backgroundColor) programmatically? HOT 4
- Do menu items respond to control focus?
- make text visible in selected and un selecteditem
- button outline
- Add support for Jetpack Compose
- Remove the movement of icon
- Added dependencies but no tags found in xml HOT 5
- onswipe fragments like tablayout HOT 1
- How to add more padding on items? HOT 2
- Failed to resolve com.github.ismaeldivita:cip-navigation-bar:1.4.0 HOT 5
- How can I use itemIconTintList?
- Could not find com.github.ismaeldivita:chip-navigation-bar:1.4.0. HOT 1
- Icon animation "state_checked"=true/false not working HOT 1
- Save current theme in ThemeActivity using onSaveInstanceState()?
- API to change badge and text color for each menu item at runtime?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chip-navigation-bar.