Skip to content

Commit 84336bc

Browse files
authored
Merge pull request #184 from oli107/release/1.4.8
Release version 1.4.8
2 parents 877ee23 + 75732aa commit 84336bc

File tree

12 files changed

+250
-199
lines changed

12 files changed

+250
-199
lines changed

README.md

+29-16
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Developers can customize the following attributes (both via XML and programatica
1616

1717
### Change Log
1818
```
19+
1.4.8 - Added mrb_minThumbDistance for specifying distances between 2 thumbs. All the selector properties are renamed to thumb.
1920
1.4.7 - Fixed selector boundary cut-off issue
2021
1.4.6 - Added tick colors, Added Left,Right and Default Selector Color. Added Touch Started /Touch Ended events to Rangebar. Fixed rangebar so that it behaves correctly inside scrollview. Also fixed Selected Tick label color issue.
2122
1.4.5 - Added TOP and BOTTOM tick labels properties and drag only option. Also updated Gradle and screenshots.
@@ -76,7 +77,18 @@ mrb_pinTextColor | reference or color
7677
mrb_temporaryPins | boolean
7778
```
7879

79-
### Selector Properties
80+
### Thumb Properties
81+
```
82+
mrb_minThumbDistance | float or -1 for ignoring
83+
mrb_thumbSize | dimension
84+
mrb_thumbColor | reference or color
85+
mrb_leftThumbColor | reference or color
86+
mrb_rightThumbColor | reference or color
87+
mrb_thumbBoundaryColor | reference or color
88+
mrb_thumbBoundarySize | dimension
89+
```
90+
91+
### Selector Properties (Replaced by Thumb Properties since version 1.4.8)
8092
```
8193
mrb_selectorColor | reference or color
8294
mrb_leftSelectorColor | reference or color
@@ -97,7 +109,7 @@ Examples
97109
This is a rangebar with both a lower and upper value
98110
```xml
99111

100-
<com.appyvet.materialrangebar.RangeBar xmlns:app="http://schemas.android.com/apk/res-auto"
112+
<com.appyvet.materialrangebar.RangeBar
101113
android:id="@+id/rangebar1"
102114
android:layout_width="match_parent"
103115
android:layout_height="wrap_content"
@@ -106,7 +118,8 @@ This is a rangebar with both a lower and upper value
106118
app:mrb_barWeight="2dp"
107119
app:mrb_connectingLineColors="@array/connecting_colors"
108120
app:mrb_connectingLineWeight="4dp"
109-
app:mrb_leftSelectorColor="#FFB300"
121+
app:mrb_leftThumbColor="#FFB300"
122+
app:mrb_minThumbDistance="-1"
110123
app:mrb_pinColor="#6c3f6a"
111124
app:mrb_pinMaxFont="15sp"
112125
app:mrb_pinMinFont="12sp"
@@ -115,10 +128,10 @@ This is a rangebar with both a lower and upper value
115128
app:mrb_rangeBar="true"
116129
app:mrb_rangeBarPaddingBottom="30dp"
117130
app:mrb_rangeBar_rounded="true"
118-
app:mrb_rightSelectorColor="#1E88E5"
119-
app:mrb_selectorBoundaryColor="@color/accent"
120-
app:mrb_selectorBoundarySize="2dp"
121-
app:mrb_selectorSize="10dp"
131+
app:mrb_rightThumbColor="#1E88E5"
132+
app:mrb_thumbBoundaryColor="@color/accent"
133+
app:mrb_thumbBoundarySize="2dp"
134+
app:mrb_thumbSize="10dp"
122135
app:mrb_temporaryPins="true"
123136
app:mrb_tickBottomLabels="@array/ticks_labels"
124137
app:mrb_tickColors="@array/tick_colors"
@@ -132,13 +145,12 @@ This is a rangebar with both a lower and upper value
132145
app:mrb_tickLabelSize="4sp"
133146
app:mrb_tickStart="1"
134147
app:mrb_tickTopLabels="@array/ticks_labels" />
135-
136148
```
137149

138150
This is a seekbar with only a single pin (note mrb_rangeBar=false)
139151
```xml
140152

141-
<com.appyvet.materialrangebar.RangeBar xmlns:app="http://schemas.android.com/apk/res-auto"
153+
<com.appyvet.materialrangebar.RangeBar
142154
android:id="@+id/rangebar1"
143155
android:layout_width="match_parent"
144156
android:layout_height="wrap_content"
@@ -147,7 +159,8 @@ This is a seekbar with only a single pin (note mrb_rangeBar=false)
147159
app:mrb_barWeight="2dp"
148160
app:mrb_connectingLineColors="@array/connecting_colors"
149161
app:mrb_connectingLineWeight="4dp"
150-
app:mrb_leftSelectorColor="#FFB300"
162+
app:mrb_leftThumbColor="#FFB300"
163+
app:mrb_minThumbDistance="-1"
151164
app:mrb_pinColor="#6c3f6a"
152165
app:mrb_pinMaxFont="15sp"
153166
app:mrb_pinMinFont="12sp"
@@ -156,10 +169,10 @@ This is a seekbar with only a single pin (note mrb_rangeBar=false)
156169
app:mrb_rangeBar="false"
157170
app:mrb_rangeBarPaddingBottom="30dp"
158171
app:mrb_rangeBar_rounded="true"
159-
app:mrb_rightSelectorColor="#1E88E5"
160-
app:mrb_selectorBoundaryColor="@color/accent"
161-
app:mrb_selectorBoundarySize="2dp"
162-
app:mrb_selectorSize="10dp"
172+
app:mrb_rightThumbColor="#1E88E5"
173+
app:mrb_thumbBoundaryColor="@color/accent"
174+
app:mrb_thumbBoundarySize="2dp"
175+
app:mrb_thumbSize="10dp"
163176
app:mrb_temporaryPins="true"
164177
app:mrb_tickBottomLabels="@array/ticks_labels"
165178
app:mrb_tickColors="@array/tick_colors"
@@ -237,15 +250,15 @@ allprojects {
237250

238251
```groovy
239252
dependencies {
240-
implementation 'com.appyvet:materialrangebar:1.4.7'
253+
implementation 'com.appyvet:materialrangebar:1.4.8'
241254
}
242255
```
243256

244257

245258
**if you are already using android support library inside your project and run into multiple version issues related to android support library then modify the gradle path like this**
246259
```groovy
247260
dependencies {
248-
compile ('com.appyvet:materialrangebar:1.4.7') {
261+
compile ('com.appyvet:materialrangebar:1.4.8') {
249262
exclude module: 'support-compat'
250263
}
251264
}

RangeBarSample/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'com.android.application'
22

33
dependencies {
44
implementation project(':materialrangebar')
5-
// implementation 'com.appyvet:materialrangebar:1.4.7'
5+
// implementation 'com.appyvet:materialrangebar:1.4.8'
66
implementation 'androidx.cardview:cardview:1.0.0'
77
implementation 'androidx.appcompat:appcompat:1.1.0'
88
implementation 'com.google.android.material:material:1.0.0'

RangeBarSample/src/main/java/com/appyvet/rangebarsample/Component.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
* @author deric
99
*/
1010
public enum Component {
11-
BAR_COLOR, CONNECTING_LINE_COLOR, PIN_COLOR, THUMB_COLOR_PRESSED, SELECTOR_COLOR, SELECTOR_BOUNDARY_COLOR,
11+
BAR_COLOR, CONNECTING_LINE_COLOR, PIN_COLOR, THUMB_COLOR_PRESSED, THUMB_COLOR, THUMB_BOUNDARY_COLOR,
1212
TICK_COLOR, TEXT_COLOR, TICK_LABEL_COLOR, TICK_LABEL_SELECTED_COLOR
1313
}

0 commit comments

Comments
 (0)