Overview of the ruler demo
masterruler project provides source code examples for Android development. It demonstrates how to implement measurement functionality for both straight rulers and circular rulers using Android View components.repository·master·Indexed 19 days ago
https://github.com/yixiaolunhui/androidrulerA curated collection of Android custom ruler and scale implementations. It includes various open-source libraries and demos for UI components used to measure distances, angles, and time, or for selecting numeric values such as height and weight. Featured components include RulerAdjust, WheelView-Android, HorizontalWheelView, NoEndlessRuler, RulerView, DecimalScaleRulerView, and ScaleRulerView.
ruler project provides source code examples for Android development. It demonstrates how to implement measurement functionality for both straight rulers and circular rulers using Android View components.RulerAdjust is an Android component used for displaying a ruler with adjustable scales. It supports three different modes of operation:
Ruler project. It supports both horizontal and vertical orientations and provides high customizability for visual elements.RulerView is a custom Android View designed to function as a ruler. It provides a visual scale that users can interact with, typically via sliding gestures. Key features include:
Based on the aggregated libraries in this repository, common features you can look for in an Android ruler implementation include:
springBack, fling, and OverScroll; smooth scrolling via smoothScrollToPosition or smoothScrollToValue; and automatic alignment to ticks (setAutoAlign).timeline mode (HH:mm) or normal ruler mode.OnScaleListener) and support for custom data display.The Ruler supports two distinct modes and three levels of tick mark visibility:
ruler_mode)timeline: A timeline format (e.g., 24-hour format HH:mm).ruler: A standard ruler mode.unit_visible)Controls which tick marks (large, medium, or small) are rendered:
max: Only large tick marks are visible.min: Both large and small tick marks are visible.mid: Large, medium, and small tick marks are all visible.The RulerWheel provides two primary modes for scale intervals and two alignment modes:
app:mode)SCALE: Uses a 10-grid interval format.HALF: Uses a smaller 0.5 interval format.app:alignMode)UP: Aligns the ruler to the top.DOWN: Aligns the ruler to the bottom.RulerView allows you to customize the scale properties to match your specific use case. You can control the range and the granularity of the markings using the following parameters:
HorizontalRuler is a UI component designed for horizontal sliding ruler functionality in Android. It allows users to interact with a ruler that can be configured with custom minimum and maximum values, providing flexibility for different measurement or selection use cases.