Description
BottomNavigationBar converts vector drawables to bitmaps on every frame, causing performance issues.
Current Problem
getBitmapFromVector() is called in draw methods, creating new bitmaps repeatedly.
Solution
- Cache converted bitmaps
- Only regenerate on size change or drawable change
- Recycle old bitmaps properly
Impact
- Reduced memory allocations
- Smoother rendering
- Lower GC pressure
Description
BottomNavigationBar converts vector drawables to bitmaps on every frame, causing performance issues.
Current Problem
getBitmapFromVector()is called in draw methods, creating new bitmaps repeatedly.Solution
Impact