Skip to content

Commit

Permalink
Allow modifying content padding
Browse files Browse the repository at this point in the history
  • Loading branch information
jahirfiquitiva committed Dec 5, 2018
1 parent 8d3eac4 commit 515afa4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions library/src/main/kotlin/com/jahirfiquitiva/chip/ChipView.kt
Expand Up @@ -294,6 +294,11 @@ open class ChipView @JvmOverloads constructor(
contentLayout?.setBackgroundResource(resId)
}

@CallSuper
override fun setPadding(left: Int, top: Int, right: Int, bottom: Int) {
contentLayout?.setPadding(left, top, right, bottom)
}

private fun internalSetBackground() {
val fgResId: Int = try {
val attrs = intArrayOf(R.attr.selectableItemBackground)
Expand Down

0 comments on commit 515afa4

Please sign in to comment.