KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
What I want to do is change the background color (set custom drawable) of a popup error message displayed after using setError() method. Currently, it looks like this: I've found that Android has two files: popup_inline_error.9.png popup_inline_above_error.9.png And you're supposed to be able to set them using two attributes: errorMessageBackground errorMessageAboveBackground But when I try to set them in my theme, all I get is: <item name="errorMessageBackground">@drawable/popup_inline_error_holo_light</item> <item name="errorMessageAboveBackground">@drawable/popup_inline_error_above_holo_light</item> error: Error: No resource found that matches the given name: attr 'errorMessageBackground'. (it's the same with android:errorMessageBackground ) I'm putting this question here, cause I've run out of ideas - maybe someone already managed to do that? EDIT: Header of the Theme I'm using: <resources xmlns:android="http://schemas.android.com/apk/res/android"> <style name="Theme.MyThemeName" parent="@style/Theme.Sherlock.Light"> ANOTHER EDIT: Uh, I've found that my question is a duplicate of: android:errorMessageBackground getting no resource found error in styles.xml YET ANOTHER EDIT: This is a known problem, take a look at this link: https://code.google.com/p/android/issues/detail?id=55879
Tags (comma-separated)
Save Edits
Cancel