Drawable drawable = ContextCompat.getDrawable(context,R.drawable.location_gray_darker);
drawable.setBounds(0, 0, 48, 48); //需要设置图片的大小才能显示
selectVillageTv.setCompoundDrawables(drawable,null,null,null);
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
网友评论