@@ -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? ##
88Get it via Gradle
99``` groovy
10- implementation 'it.xabaras.android:recyclerview-swipedecorator:1.1 '
10+ implementation 'it.xabaras.android:recyclerview-swipedecorator:1.2 '
1111```
1212or 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 ####
6767You 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
7070A 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) #####
7382Add a background color to the view while swiping right.
7483
7584##### public Builder addSwipeRightActionIcon(int color) #####
7685Add 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) #####
7991Add a background color to the view while swiping left.
8092
8193##### public Builder addSwipeLeftActionIcon(int color) #####
8294Add 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