标签:
ImageView :iv
LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT); lp.setMargins(10, 10, 10, 10); iv.setLayoutParams(lp);
设置图片
iv.setImageDrawable(getResources().getDrawable(R.drawable.sdate1));
标签:
原文地址:http://www.cnblogs.com/hack132/p/4262428.html