Skip to content

Commit bec392f

Browse files
authored
Change read me info
1 parent 964b8c8 commit bec392f

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

README.md

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,26 +31,31 @@ private fun initDeck() {
3131

3232
or set padding based on percentage of the screen width
3333

34-
```
35-
// in kotlin
34+
```kotlin
3635
deckPager.setPercentagePadding(activity, 8)
37-
38-
// in XML
39-
app:padding_percentage="8"
4036
```
4137

4238
or set padding based on dp value
4339

44-
```
45-
// in kotlin
40+
```kotlin
4641
deckPager.setDpPadding(activity, 16)
47-
48-
// in XML
49-
app:padding_dp="16dp"
5042
```
5143

5244
##### Remember you can set all other view pager properties with deck
5345

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+
5459
# Import
5560

5661
It's easy import deck in your project, first you need add jit pack maven reference in your project

0 commit comments

Comments
 (0)