setImageResource

open fun setImageResource(@IdRes id: Int, @DrawableRes resId: Int): ImageView

根据Drawable资源ID设置图像 setImageResource

Return

ImageView

Parameters

id

视图ID

resId

Drawable资源ID