You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you use Gradle add JitPack in your root build.gradle at the end of repositories:
16
18
```groovy
@@ -48,7 +50,7 @@ Then add the dependency
48
50
</dependency>
49
51
```
50
52
51
-
#Previous versions ~1.2.3
53
+
### Previous versions ~1.2.3 ###
52
54
53
55
Get it via Gradle
54
56
@@ -65,7 +67,7 @@ or Maven
65
67
</dependency>
66
68
```
67
69
68
-
Currently working to bring latest version to Maven Central.
70
+
**Currently working to bring latest version to Maven Central.**
69
71
70
72
## Usage ##
71
73
Here is a non-comprehensive guide to RecyclerViewSwipeDecorator for any further information you can reference the library [javadoc](https://xabaras.github.io/RecyclerViewSwipeDecorator/javadoc/), the sources and/or the sample app sources.
@@ -116,63 +118,59 @@ If you want you can add a label for each swiping direction or setting the icon t
116
118
A method to set the action icon margin from the view left/right bound it available too.
117
119
118
120
##### public Builder addBackgroundColor(int color) #####
119
-
Add a background color to both swiping directions
121
+
Add a background color to both swiping directions
120
122
121
123
##### public Builder addActionIcon(int color) #####
122
-
Add an action icon to both swiping directions
124
+
Add an action icon to both swiping directions
123
125
124
126
##### public Builder setActionIconTint(int color) #####
125
-
Set the tint color for either (left/right) action icons
127
+
Set the tint color for either (left/right) action icons
126
128
127
129
##### public Builder addSwipeRightBackgroundColor(int color) #####
128
-
Add a background color to the view while swiping right.
130
+
Add a background color to the view while swiping right.
129
131
130
132
##### public Builder addSwipeRightActionIcon(int color) #####
131
-
Add an action icon while swiping right (it's suggested to use 24dp square vector drawables.).
133
+
Add an action icon while swiping right (it's suggested to use 24dp square vector drawables.).
132
134
133
135
##### public Builder setSwipeRightActionIconTint(int color) #####
134
-
Set the tint color for action icon shown while swiping right
136
+
Set the tint color for action icon shown while swiping right
135
137
136
138
##### public Builder addSwipeLeftBackgroundColor(int color) #####
137
-
Add a background color to the view while swiping left.
139
+
Add a background color to the view while swiping left.
138
140
139
141
##### public Builder addSwipeLeftActionIcon(int color) #####
140
-
Add an action icon while swiping left (it's suggested to use 24dp square vector drawables.).
142
+
Add an action icon while swiping left (it's suggested to use 24dp square vector drawables.).
141
143
142
144
##### public Builder setSwipeLeftActionIconTint(int color) #####
143
-
Set the tint color for action icon shown while swiping left
144
-
145
-
~~##### public Builder setIconHorizontalMargin(int iconHorizontalMargin) #####~~
146
-
147
-
[Deprecated] Set icon horizontal margin from left/right bound of the view (default is 16dp).
145
+
Set the tint color for action icon shown while swiping left
148
146
149
147
##### public Builder setIconHorizontalMargin(int unit, int iconHorizontalMargin) #####
150
-
Set icon horizontal margin from left/right bound of the view (default is 16dp).
151
-
N.B. unit is a TypedValue (e.g. TypedValue.COMPLEX_UNIT_DIP)
148
+
Set icon horizontal margin from left/right bound of the view (default is 16dp).
149
+
Unit is a TypedValue (e.g. TypedValue.COMPLEX_UNIT_DIP)
152
150
153
151
##### public Builder addSwipeRightLabel(String label) #####
154
-
Add a label to be shown while swiping right
152
+
Add a label to be shown while swiping right
155
153
156
154
##### public Builder setSwipeRightLabelColor(int color) #####
157
-
Set the color of the label to be shown while swiping right
155
+
Set the color of the label to be shown while swiping right
158
156
159
157
##### public Builder setSwipeRightLabelTextSize(int unit, float size) #####
160
-
Set the size of the label to be shown while swiping right
161
-
N.B. unit is a TypedValue (e.g. TypedValue.COMPLEX_UNIT_SP)
158
+
Set the size of the label to be shown while swiping right
159
+
Unit is a TypedValue (e.g. TypedValue.COMPLEX_UNIT_SP)
162
160
163
161
##### public Builder setSwipeRightLabelTypeface(Typeface typeface) #####
164
-
Set the Typeface of the label to be shown while swiping right
162
+
Set the Typeface of the label to be shown while swiping right
165
163
166
164
167
165
##### public Builder addSwipeLeftLabel(String label) #####
168
-
Add a label to be shown while swiping left
166
+
Add a label to be shown while swiping left
169
167
170
168
##### public Builder setSwipeLeftLabelColor(int color) #####
171
-
Set the color of the label to be shown while swiping left
169
+
Set the color of the label to be shown while swiping left
172
170
173
171
##### public Builder setSwipeLeftLabelTextSize(int unit, float size) #####
174
-
Set the size of the label to be shown while swiping left
175
-
N.B. unit is a TypedValue (e.g. TypedValue.COMPLEX_UNIT_SP)
172
+
Set the size of the label to be shown while swiping left
173
+
Unit is a TypedValue (e.g. TypedValue.COMPLEX_UNIT_SP)
176
174
177
175
##### public Builder setSwipeLeftLabelTypeface(Typeface typeface) #####
178
-
Set the Typeface of the label to be shown while swiping left
176
+
Set the Typeface of the label to be shown while swiping left
0 commit comments