Skip to content

Commit

Permalink
Add top and bottom padding extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisCAD committed Mar 24, 2018
1 parent 51bd814 commit 85ae9bc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions views/src/main/java/splitties/views/Padding.kt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ inline var View.verticalPadding: Int
@Deprecated(NO_GETTER, level = HIDDEN) get() = noGetter
set(value) = setPadding(paddingLeft, value, paddingRight, value)

inline var View.topPadding: Int
get() = paddingTop
set(value) = setPadding(paddingLeft, value, paddingRight, paddingBottom)

inline var View.bottomPadding: Int
get() = paddingBottom
set(value) = setPadding(paddingLeft, paddingTop, paddingRight, value)

fun View.setPaddingDp(start: Int = 0,
top: Int = 0,
end: Int = 0,
Expand Down

0 comments on commit 85ae9bc

Please sign in to comment.