Skip to content

Add bitmap caching to BottomNavigationBar #8

@OneXeor

Description

@OneXeor

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestphase-2Performance & Stability

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions