Skip to content

Instantly share code, notes, and snippets.

@ayushhgoyal
Created September 26, 2013 14:10
Show Gist options
  • Select an option

  • Save ayushhgoyal/6714773 to your computer and use it in GitHub Desktop.

Select an option

Save ayushhgoyal/6714773 to your computer and use it in GitHub Desktop.
Change background of an Edittext. Changing EditText background with normal properties makes it horrible..use this one line code to change it.
<your-widget-component-that-has-a-background-color>.getBackground().setColorFilter(Color.<your-desired-color>, PorterDuff.Mode.MULTIPLY);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment