I am doing such type of project ,In my project change Image color dynamically.
I have a one black shape color image ,when user click on this ima
In XML use src not background tag in ImageView. In java code-
import android.graphics.PorterDuff.Mode;
final Context context=this;
home1=(ImageView) findViewById(R.id.home1);
Resources res = context1.getResources();
final int newColor = res.getColor(android.R.color.black);
home1.setColorFilter(newColor, Mode.SRC_ATOP);