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))
本文标题:构造ImageView 及设置图片大小
本文链接:https://www.haomeiwen.com/subject/drpgohtx.html
网友评论