Skip to content

Commit 959e886

Browse files
Renamed RecyclerViewDividerItemDecoration to RecyclerViewColoredDividerItemDecoration.
1 parent 095fe94 commit 959e886

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ This library contains a mixture of small helper classes, functions and views use
3636

3737
## Views
3838

39-
* [HorizontalDividerItemDecoration](library/src/main/java/com/tazkiyatech/utils/views/HorizontalDividerItemDecoration.java) – An extension of the `androidx.recyclerview.widget.RecyclerView.ItemDecoration` class that draws a horizontal divider at the bottom of each item in the `RecyclerView`.
39+
* [RecyclerViewDividerColoredItemDecoration](library/src/main/java/com/tazkiyatech/utils/views/RecyclerViewColoredDividerItemDecoration.java) – An extension of the `androidx.recyclerview.widget.RecyclerView.ItemDecoration` class that draws a colored divider between each item in a `RecyclerView`.
40+
* [RecyclerViewVerticalGapItemDecoration](library/src/main/java/com/tazkiyatech/utils/views/RecyclerViewVerticalGapItemDecoration.java) – An extension of the `androidx.recyclerview.widget.RecyclerView.ItemDecoration` class that draws a vertical gap between each item in a `RecyclerView`.
4041
* [SimpleTouchListener](library/src/main/java/com/tazkiyatech/utils/views/SimpleTouchListener.java) – An implementation of the `android.view.View.OnTouchListener` interface that simply reports when a `android.view.View` is touched down and when the touch is subsequently released or canceled.
4142
* [SpinnerLookalikeView](library/src/main/java/com/tazkiyatech/utils/views/SpinnerLookalikeView.java) – An extension of the `android.widget.FrameLayout` class that looks like an `android.widget.Spinner` view.
4243

@@ -48,5 +49,5 @@ To use the above utilities within your app simply add the following repository a
4849
mavenCentral()
4950
}
5051
dependencies {
51-
implementation 'com.tazkiyatech:android-utils:0.2.0'
52+
implementation 'com.tazkiyatech:android-utils:0.2.2'
5253
}

library/src/main/java/com/tazkiyatech/utils/views/RecyclerViewDividerItemDecoration.java renamed to library/src/main/java/com/tazkiyatech/utils/views/RecyclerViewColoredDividerItemDecoration.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@
1111

1212
/**
1313
* An extension of {@link RecyclerView.ItemDecoration} that
14-
* draws a divider between each item in a {@link RecyclerView}.
14+
* draws a colored divider between each item in a {@link RecyclerView}.
1515
* <p>
1616
* Unlike the {@link androidx.recyclerview.widget.DividerItemDecoration} class offered by the
1717
* <a href="https://maven.google.com/web/index.html#androidx.recyclerview:recyclerview">recyclerview</a>
18-
* library, this class does not draw the divider under the final item in the {@link RecyclerView}.
18+
* library, this class does not draw a divider under the final item in the {@link RecyclerView}.
1919
* <p>
2020
* See <a href="https://stackoverflow.com/a/27037230/1071320">this answer</a> in Stack Overflow
2121
* for a better understanding of {@link RecyclerView.ItemDecoration}.
2222
*/
23-
public class RecyclerViewDividerItemDecoration extends RecyclerView.ItemDecoration {
23+
public class RecyclerViewColoredDividerItemDecoration extends RecyclerView.ItemDecoration {
2424

2525
private final Drawable dividerDrawable;
2626
private final int dividerHeightPixels;
@@ -35,10 +35,10 @@ public class RecyclerViewDividerItemDecoration extends RecyclerView.ItemDecorati
3535
* @param dividerMarginLeftPixels The left margin to apply to the divider (in pixels).
3636
* @param dividerMarginRightPixels The right margin to apply to the divider (in pixels).
3737
*/
38-
public RecyclerViewDividerItemDecoration(@ColorInt int dividerColor,
39-
int dividerHeightPixels,
40-
int dividerMarginLeftPixels,
41-
int dividerMarginRightPixels) {
38+
public RecyclerViewColoredDividerItemDecoration(@ColorInt int dividerColor,
39+
int dividerHeightPixels,
40+
int dividerMarginLeftPixels,
41+
int dividerMarginRightPixels) {
4242
this.dividerDrawable = new ColorDrawable(dividerColor);
4343
this.dividerHeightPixels = dividerHeightPixels;
4444
this.dividerMarginLeftPixels = dividerMarginLeftPixels;

0 commit comments

Comments
 (0)