When I am adding android:id/background to the namespace, Lint complains that it \"Cannot Resolve Symbol\" even though I am requesting to add it rather than call it. The code wor
If you are creating your own id:
"@+id/your_new_id"
if you are accessing your already created id
"@id/your_old_id"
if you are trying to access Android's system created id
"@android:id/system_id"
you can see the difference, if you are creating your own id then you have to add +
. Since you are accessing system ID so you don't have to add +
It seems you are using an extra +
.
You should remove it, replace as follows @+android:id/background
to @android:id/background
.
Try to replace @+android:id by @+id and see if it works!