ti.rangebar - Android Rangebar module
Appcelerator Titanum Rangebar module for Android.
Based on https://github.com/oli107/material-range-bar
Example
<RangebarView module="ti.rangebar" onChange="onChangeDistance" tickStart="2" tickEnd="100" tickInterval="2" connectionLineColor="#000" tickColor="transparent" leftThumbColor="#000" rightThumbColor="#000" height="Ti.UI.SIZE"/>
Properties:
| range | Two (true/default) or one thumb (false; right only) |
| tickStart | Start value |
| tickEnd | End value |
| tickInterval | Steps |
| thumbSize | Size of the left/right thumb |
| tickColor | Tick/Dot color (can be transparent) |
| leftThumbColor | Left thumb color |
| rightThumbColor | Right thumb color |
| connectionLineColor | Color between ticks/dots |
| tickSize | Tick/dot size (can be zero) |
| pinColor | Color of the pin/bubble |
| pinRadus | Radus of the pin/bubble |
| staticPins | Only show pin/bubble when touching thumb (default/true) or show it all the time (false) |
Attention
If you set the height to Ti.UI.SIZE it will include the space for the pin/bubble. Make sure to set a fixed height if you want to have it smaler and use it without pins/bubbles.
Events
- onChange - startValue/endValue
- onTouchStart - startValue/endValue
- onTouchEnd - startValue/endValue