构造ImageView 及设置图片大小
2020-05-20 本文已影响0人
风谷水岸
var imageView = ImageView(context)
imageView.setImageDrawable(resources.getDrawable(R.drawable.msg, context?.getTheme()))
imageView.setLayoutParams(ViewGroup.LayoutParams(80,80))
var imageView = ImageView(context)
imageView.setImageDrawable(resources.getDrawable(R.drawable.msg, context?.getTheme()))
imageView.setLayoutParams(ViewGroup.LayoutParams(80,80))