Good afternoon,
Guys I did a style file for all fields style.xml EditText now when the field gaining focus, I want to change the style. How do?
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 have to define the drawables for each state of your edit text. You create an xml file in your drawables folder that defines all the state drawables for your edit text. The XML file looks like this:
You make one item for each state drawable you want to specify. So for a drawable for state_focused you’d just do:
Name this XML file, custom_edit_text.xml, make sure it’s in the drawables folder.
Then all you have to do is define in your styles.xml
Good luck!