A fast ImageView (and Drawable) that supports rounded corners (and ovals or circles) based on the original example from Romain Guy. It supports many additional features including ovals, rounded rectangles, ScaleTypes and TileModes. There are many ways to create rounded corners in android, but this is the fastest and best one that I know of because it does not create a copy of the original bitmap, does not use a clipPath which is not hardware accelerated and not anti-aliased, does not use setXfermode to clip the bitmap and draw twice to the canvas. RoundedImageView is available in Maven Central. Borders are not scaled up/down with the image (correct width and radius are maintained). Support for LayerDrawables (including TransitionDrawables). Licensed under the Apache License.

Features

  • Borders (with Colors and ColorStateLists)
  • Ovals and circles
  • Borders are drawn at view edge, not bitmap edge
  • Except on edges where the bitmap is smaller than the view
  • Borders are not scaled up/down with the image (correct width and radius are maintained)
  • Support for LayerDrawables (including TransitionDrawables)

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow RoundedImageView

RoundedImageView Web Site

Other Useful Business Software
Skillfully - The future of skills based hiring Icon
Skillfully - The future of skills based hiring

Realistic Workplace Simulations that Show Applicant Skills in Action

Skillfully transforms hiring through AI-powered skill simulations that show you how candidates actually perform before you hire them. Our platform helps companies cut through AI-generated resumes and rehearsed interviews by validating real capabilities in action. Through dynamic job specific simulations and skill-based assessments, companies like Bloomberg and McKinsey have cut screening time by 50% while dramatically improving hire quality.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of RoundedImageView!

Additional Project Details

Operating Systems

Android

Programming Language

Java

Related Categories

Java Data Visualization Software

Registered

2021-09-08