How to set and get tint color on SVG programmaticaly in android?
问题 I have an ImageView which has an SVG as source example: android:src="@drawable/bold_svg" . Now on click I want to set the tint color to color accent or return it to white . Two states. What I have tried: myImageView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { int currentColor, colorAccent; currentColor=ImageViewCompat.getImageTintList(myImageView).getDefaultColor(); colorAccent=getResources().getColor(R.color.colorAccent); if (currentColor=