An Android library for creating floating view animations above an anchor view with customizable transitions.
FloatingView is an Android library that allows developers to animate a view so it floats above another view with customizable transitions. It solves the need for engaging, visually appealing floating animations in Android apps, providing a simple API to create effects like scaling, fading, and path-based motion. The library handles the complexity of animation coordination, making it easy to add polished floating interactions.
Android developers looking to add floating animations to their apps, particularly those building interactive UIs, onboarding flows, or visual feedback effects. It's suitable for both beginners and advanced developers needing customizable animation solutions.
Developers choose FloatingView for its straightforward API, flexibility in creating custom transitions, and support for spring physics and path animations. It eliminates the boilerplate of manual animation management while offering deep customization hooks, making it a lightweight yet powerful alternative to building animations from scratch.
FloatingView can make the target view floating above the anchor view with cool animation
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
The FloatingBuilder allows quick setup with anchor and target views, offsets, and transitions in just a few lines of code, as shown in the Usage section where a FloatingElement is created declaratively.
Developers can implement the FloatingTransition interface to create bespoke animations with scale, alpha, translate, and rotate transformations, supported by examples like ScaleFloatingTransition in the README.
Supports complex motion trajectories using Android Path objects, enabling curved or custom paths via BaseFloatingPathTransition, as demonstrated with CurveFloatingPathTransition for advanced floating effects.
Integrates Facebook Rebound for bouncy, physics-based animations through SpringHelper, adding realistic motion without manual implementation, evidenced in the custom transition examples.
Requires Facebook Rebound for spring animations, adding an extra library dependency that may complicate project maintenance and increase APK size, as noted in the integration details.
Exclusively works with traditional Android Views, lacking native compatibility with Jetpack Compose, which restricts its use in contemporary Android development stacks.
Advanced animations necessitate implementing interfaces like FloatingTransition or BaseFloatingPathTransition, demanding more coding effort compared to drop-in animation libraries.