Created
September 26, 2013 14:10
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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