# florent37/ShapeOfView

Give a custom shape to any android view, Material Design 2 ready

Repository: https://github.com/florent37/ShapeOfView
Canonical: https://ross.abutalabs.com/products/shapeofview
Language: Java
License: Apache-2.0
License Family: permissive
Topics: android, custom, view, shape, mask, layout, xml, material, androidx
Last push: 2025-03-07T21:04:51+00:00

## Health v2 (maintenance only)
Score: 37/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 10, release rhythm 35, longevity 100
- inputs: {"age_days": 3118, "days_push": 544, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3227, forks 400 (observed 2026-08-28T04:07:50.013836+00:00)

## What it is
An Android library that lets developers apply custom shapes (circle, round rect, arc, diagonal, cutout, and more) to any Android view via XML layouts. It is designed with Material Design 2 in mind and supports elevation, borders, and custom shape definitions.

## Use cases
- give a custom shape to any android view
- create circular image or card views in android
- apply diagonal or arc cutouts to layouts for material design 2
- mask android views with custom shapes in xml
- add borders and elevation to shaped views
- build bottom arc or cutout view containers

## When to choose
- you need shaped views (circles, arcs, diagonals, cutouts) on Android without writing custom View code
- you want Material Design 2 style shaped components defined directly in XML
- you need per-corner rounded rectangles or bordered shaped views with elevation support

## When to avoid
- you are not developing for Android
- you only need simple rounded corners, which standard CardView or MaterialCardView already provide
- you need Jetpack Compose shapes rather than XML view-based layouts

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, graphics
- domain: mobile-development, android-tools, web-design
- platform: jvm
- tags: custom-shapes, view-masking, material-design, androidx, xml-layouts, android, mobile

## Member repositories
- florent37/ShapeOfView (main) score 37

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:50.013836+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:44:10.070331+00:00, confidence not recorded.
  - readme: https://github.com/florent37/ShapeOfView (fetched 2026-08-28T04:07:50.013836+00:00, sha 0445affcd739)
- Data as of 2026-08-30T08:39:29.467469+00:00.
