File tree Expand file tree Collapse file tree 1 file changed +15
-10
lines changed Expand file tree Collapse file tree 1 file changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -31,26 +31,31 @@ private fun initDeck() {
31
31
32
32
or set padding based on percentage of the screen width
33
33
34
- ```
35
- // in kotlin
34
+ ``` kotlin
36
35
deckPager.setPercentagePadding(activity, 8 )
37
-
38
- // in XML
39
- app:padding_percentage="8"
40
36
```
41
37
42
38
or set padding based on dp value
43
39
44
- ```
45
- // in kotlin
40
+ ``` kotlin
46
41
deckPager.setDpPadding(activity, 16 )
47
-
48
- // in XML
49
- app:padding_dp="16dp"
50
42
```
51
43
52
44
##### Remember you can set all other view pager properties with deck
53
45
46
+ # Deck properties
47
+
48
+ These are all properties supported in deck's xml
49
+
50
+ ``` xml
51
+ <com .example.lib.Deck
52
+ android : id =" @+id/deck_pager"
53
+ android : layout_width =" match_parent"
54
+ android : layout_height =" match_parent"
55
+ app : padding_percentage =" 8"
56
+ app:padding_dp=" 16dp" />
57
+ ```
58
+
54
59
# Import
55
60
56
61
It's easy import deck in your project, first you need add jit pack maven reference in your project
You can’t perform that action at this time.
0 commit comments