setMarginResource

fun setMarginResource(@DimenRes() value: Int): Balloon.Builder

sets the margin on the balloon all directions using a dimension resource.