Skip to content

A customizable vertical ruler widget for Jetpack Compose with a snapping scale, haptic feedback, and unit switching (cm/ft). Perfect for measurement apps and height selectors, supporting dark/light themes.

License

Notifications You must be signed in to change notification settings

pmjsankar/Ruler-Scale-Compose

Repository files navigation

Ruler-Scale-Compose

Android Jetpack Compose License

A Jetpack Compose component that displays a vertical ruler with selectable cm and ft units, complete with a needle indicator and haptic feedback.

Features

  • Scrollable vertical scale with major and minor tick marks.
  • Switch between cm and ft/inch units.
  • Real-time value updates via callback.
  • Supports dark and light themes.
  • Haptic feedback on value change.

Screenshots

Light Mode

Dark Mode

GIF Preview:

Demo

Usage

RulerScaleWithNeedle(
    onValueChange = { value, unit ->
        // Handle selected value here
    }
)

About

A customizable vertical ruler widget for Jetpack Compose with a snapping scale, haptic feedback, and unit switching (cm/ft). Perfect for measurement apps and height selectors, supporting dark/light themes.

Topics

Resources

License

Stars

Watchers

Forks

Languages