if (i_count==0){ Drawable drawable1= getResources().getDrawable(R.drawable.ic_news_comment_write); /// 这一步必须要做,否则不会显示. drawable1.setBounds(0, 0, 30, 30); tvComment.setCompoundDrawables(drawable1,null,null,null); // tvComment.setCompoundDrawablesWithIntrinsicBounds(R.drawable.ic_news_comment_write,0,0,0);
textview动态设置 DrableLeft 以及改变图片大小
最新推荐文章于 2023-04-11 17:14:00 发布