I have an EditText control in my application and when it is focused (i.e. I’m ready to enter something) I want to apply shadow color to it. How can I do this?
Thanks,
@nagaraju.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use the Selector tag like Follows:
Create a New xml file and place it in your drawable folder and name it as shadow_color.xml
And then go to that xml in which your EditText is declared:
And write one attribute in editText
android:background=”@drawable/shadow_color”
and you are done.