toggleExpandState

fun View.toggleExpandState(duration: Long = 500): Boolean

Return

true in case of expanding