ImageButton ib = (ImageButton)findViewById(R.id.ib);
ib.getBackground().setColorFilter(Color.GRAY, PorterDuff.Mode.MULTIPLY);
![](https://img-my.csdn.net/uploads/201204/05/1333591395_5720.png)
ImageButton ib = (ImageButton)findViewById(R.id.ib);
ib.getBackground().setColorFilter(Color.GRAY, PorterDuff.Mode.MULTIPLY);