Why arent strings (and similar colors) defined in android namespace?

I have a question for android newbies:

Why arent lines and other resources such as colors (defined in the res / values ​​directory) defined in the android namespace by assigning the xmlns: android = "http: // schemas ......" attribute to the tag?

+6
source share
1 answer

I don't know if there is a “why”, but I think the best answer is that these XML files are so simple that the schema adds little value. On the one hand, this will help editors find errors automatically; on the other hand, this is a bit more for Android developers and developers.

0
source

Source: https://habr.com/ru/post/892030/


All Articles