Skip to content

Commit f726a87

Browse files
authored
Update README.md
publishing version 1.2
1 parent 0d70a15 commit f726a87

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

README.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ A simple utility class to add a background, an icon and a label to a RecyclerVie
77
## How do I get set up? ##
88
Get it via Gradle
99
```groovy
10-
implementation 'it.xabaras.android:recyclerview-swipedecorator:1.1'
10+
implementation 'it.xabaras.android:recyclerview-swipedecorator:1.2'
1111
```
1212
or Maven
1313
```xml
1414
<dependency>
1515
<groupId>it.xabaras.android</groupId>
1616
<artifactId>recyclerview-swipedecorator</artifactId>
17-
<version>1.1</version>
17+
<version>1.2</version>
1818
<type>pom</type>
1919
</dependency>
2020
```
@@ -65,22 +65,36 @@ public void onChildDraw (Canvas c, RecyclerView recyclerView, RecyclerView.ViewH
6565

6666
#### Customizing ####
6767
You can choose different background/icon combinations for left and right swipe directions by using direction specific methods in the Builder object.
68-
If you want you can add a label for each swiping direction.
68+
If you want you can add a label for each swiping direction or setting the icon tint.
6969

7070
A method to set the action icon margin from the view left/right bound it available too.
7171

72+
##### public Builder addBackgroundColor(int color) #####
73+
Add a background color to both swiping directions
74+
75+
##### public Builder addActionIcon(int color) #####
76+
Add an action icon to both swiping directions
77+
78+
##### public Builder setActionIconTint(int color) #####
79+
Set the tint color for either (left/right) action icons
80+
7281
##### public Builder addSwipeRightBackgroundColor(int color) #####
7382
Add a background color to the view while swiping right.
7483

7584
##### public Builder addSwipeRightActionIcon(int color) #####
7685
Add an action icon while swiping right (it's suggested to use 24dp square vector drawables.).
7786

87+
##### public Builder setSwipeRightActionIconTint(int color) #####
88+
Set the tint color for action icon shown while swiping right
89+
7890
##### public Builder addSwipeLeftBackgroundColor(int color) #####
7991
Add a background color to the view while swiping left.
8092

8193
##### public Builder addSwipeLeftActionIcon(int color) #####
8294
Add an action icon while swiping left (it's suggested to use 24dp square vector drawables.).
8395

96+
##### public Builder setSwipeLeftActionIconTint(int color) #####
97+
Set the tint color for action icon shown while swiping left
8498

8599
~~##### public Builder setIconHorizontalMargin(int iconHorizontalMargin) #####~~
86100

0 commit comments

Comments
 (0)