setAlpha

fun setAlpha(@IdRes id: Int, alpha: Float): View

设置视图的透明度 View.setAlpha

Return

View

Parameters

id

视图ID

alpha

透明度