Skip to content

Add bitmap caching to BottomNavigationBar #8

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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