版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/shakdy/article/details/81054882
改变ImageView的背景
Drawable drawable = ResourcesCompat.getDrawable(getResources(), R.drawable.has_authorization, null);
imv_authorization.setBackground(drawable);
改变button的背景颜色
btn_signed.setBackgroundColor(Color.parseColor("#7CFC00"));