Couldn't resolve resource @id/visible when using TextInputLayout
Solution 1:
This nags one with the Rendering Problems window
How to fix: add these values to any values file (the filename doesn't appear to matter, I use ids.xml
, you can use an existing one as well, such as colors.xml
or strings.xml
)
<?xml version="1.0" encoding="utf-8"?>
<resources>
<item name="visible" type="id"/>
<item name="masked" type="id"/>
</resources>
Solution 2:
It most likely is a bug, and it has been filed in the Issue Tracker.
Meanwhile, you may try to switch the API version in the editor to 19 or below, though you may see some minor differences in the design output.
Solution 3:
No Need To Change API
Couldn't resolve resource @string/faq_customer_service
or
Couldn't resolve resource @id/visible
or
Couldn't resolve resource @id/masked
The solution is if you implement TextInputLayout
the above problems may arise ... so Simply add those id or strings to xml files as their property.