Skip to content

Commit c8e0b45

Browse files
authored
Update README.md
1 parent 1540453 commit c8e0b45

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
- [StackFrom](#stackfrom)
2020
- [VisibleCount](#visiblecount)
2121
- [ElevationEnabled](#elevationenabled)
22+
- [Overlay](#overlay)
2223
- [SwipeEnabled](#swipeenabled)
2324
- [SwipeDirection](#swipedirection)
2425
- [SwipeThreshold](#swipethreshold)
@@ -103,6 +104,26 @@ or
103104
CardStackView#setElevationEnabled(false);
104105
```
105106

107+
## Overlay
108+
109+
| Value | Sample |
110+
| :----: | :----: |
111+
| Left | ![Overlay-Left](https://github.com/yuyakaido/CardStackView/blob/v1/images/overlay-left.png) |
112+
| Right | ![Overlay-Right](https://github.com/yuyakaido/CardStackView/blob/v1/images/overlay-right.png) |
113+
114+
```xml
115+
<com.yuyakaido.android.cardstackview.CardStackView
116+
app:leftOverlay="@layout/overlay_left"
117+
or
118+
app:rightOverlay="@layout/overlay_right"/>
119+
```
120+
121+
```java
122+
CardStackView#setLeftOverlay(R.layout.overlay_left);
123+
or
124+
CardStackView#setRightOverlay(R.layout.overlay_right);
125+
```
126+
106127
## SwipeEnabled
107128

108129
| Default | Value | Sample |

0 commit comments

Comments
 (0)