构造ImageView 及设置图片大小

var imageView = ImageView(context)

imageView.setImageDrawable(resources.getDrawable(R.drawable.msg, context?.getTheme()))

imageView.setLayoutParams(ViewGroup.LayoutParams(80,80))

你可能感兴趣的:(构造ImageView 及设置图片大小)