Skip to content

Instantly share code, notes, and snippets.

@AlexHedley
Last active August 29, 2015 14:14
Show Gist options
  • Select an option

  • Save AlexHedley/18cd7f5557d5804c02ac to your computer and use it in GitHub Desktop.

Select an option

Save AlexHedley/18cd7f5557d5804c02ac to your computer and use it in GitHub Desktop.
Image Button - Set Image
ImageButton button = (ImageButton) this.findViewById(R.id.BUTTONID);
button.setColorFilter(Color.argb(255, 255, 255, 255)); // White Tint
<ImageButton
...
android:src="@drawable/NAME"
android:background="@null"
android:tint="@android:color/white"
/>
//Transparent Background add "@null"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment