美文网首页
Android setCompoundDrawables 无效

Android setCompoundDrawables 无效

作者: 旺仔爸 | 来源:发表于2017-03-20 10:36 被阅读254次
Drawable drawable = ContextCompat.getDrawable(context,R.drawable.location_gray_darker);
drawable.setBounds(0, 0, 48, 48);    //需要设置图片的大小才能显示
     selectVillageTv.setCompoundDrawables(drawable,null,null,null);

相关文章

网友评论

      本文标题:Android setCompoundDrawables 无效

      本文链接:https://www.haomeiwen.com/subject/crybnttx.html