File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 20
20
- [ StackFrom] ( #stackfrom )
21
21
- [ VisibleCount] ( #visiblecount )
22
22
- [ ElevationEnabled] ( #elevationenabled )
23
+ - [ TranslationDiff] ( #translationdiff )
23
24
- [ Overlay] ( #overlay )
24
25
- [ SwipeEnabled] ( #swipeenabled )
25
26
- [ SwipeDirection] ( #swipedirection )
115
116
CardStackView #setElevationEnabled(false );
116
117
```
117
118
119
+ ## TranslationDiff
120
+
121
+ The unit of TranslationDiff is ** dp** .
122
+
123
+ | Default | Value | Sample |
124
+ | :----: | :----: | :----: |
125
+ | | 8dp | ![ TranslationDiff-18] ( https://github.com/yuyakaido/CardStackView/blob/master/images/translation-diff-8.png ) |
126
+ | ✅ | 12dp | ![ TranslationDiff-12] ( https://github.com/yuyakaido/CardStackView/blob/master/images/translation-diff-12.png ) |
127
+ | | 16dp | ![ TranslationDiff-16] ( https://github.com/yuyakaido/CardStackView/blob/master/images/translation-diff-16.png ) |
128
+
129
+ ``` xml
130
+ <com .yuyakaido.android.cardstackview.CardStackView
131
+ app : translationDiff =" 12" />
132
+ ```
133
+
134
+ ``` java
135
+ CardStackView #setTranslationDiff(12f );
136
+ ```
137
+
118
138
## Overlay
119
139
120
140
| Value | Sample |
You can’t perform that action at this time.
0 commit comments