setMaxWidthResource

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

sets the maximum size of the width using a dimension resource. this functionality works only with the BalloonSizeSpec.WRAP.