RangeBar is a bar in material design, which is similar to SeekBar widget, that gives you an opportunity to make a selection of a range of values.
##Usage:
##Custom color:
##Custom line width:
##Custom pin radius:
##Custom value interval:
##Setup:
-
If you use JCenter repository in your project, just add dependence to main build.gradle:
dependencies { compile 'pro.appus:rangebar:1.0.0' }
Else add repository to the same build.gradle:
repositories { maven { url 'https://dl.bintray.com/roman-voronoy/maven/' } }
-
Done!
##Usage example:
RangeBar can send callbacks for subscribers. For subscribing you need to set a listener:
yourRangeBar.setOnRangeBarChangeListener(new RangeBar.OnRangeBarChangeListener() {
@Override
public void onValueChanged(RangeBar rangeBar, int leftIndex, int rightIndex, String leftValue, String rightValue) {
... your code here ...
}
});
##Tick attributes: tickStartValue - integer tickEndValue - integer tickInterval - float tickRadius - dimension tickColor - color
##Pin attributes: pinWidth - dimension pinColor - color
##Thumb attributes: thumbColor - color thumbLeftIndex - integer thumbRightIndex - integer
##Connecting line attributes: connectingLineStrokeWidth - dimension connectingLineColor - color
##Text attributes: textColor - color
- Igor Malytsky, Appus Studio
Copyright 2015 Appus Studio.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.