How to tear the view. In particular, EditText?

Hey man. First of all, thanks for that. I am having trouble finding a way to change my EditText when I lose focus on it. I would like it to be gray when this happens, but I do not want it to be disabled because the user can touch it and edit the text later.

Is anyone

Hello!

+3
source share
1 answer

You can set different colors to text based on OnFocusChangeListener

Another option is to set the style in xml. See this question for details: Android: change the style when focusing

, setAlpha. , : ui AlphaAnimation

+4

All Articles