Why is "android:" everywhere?

Why do Android layout files xmlneed android:before each view attribute? Doesn't the system know about this Android? If the word is really redundant, it would seem that its omission would save a significant part of the memory required by these files, not to mention the typing by the programmers.

+5
source share
1 answer

He used to indicate that an element or attribute is part of this XML namespace. You can create your own namespaces for your own components (and often you will see them with third-party libraries). Therefore, in this regard, it is not redundant, since it prevents name collisions.

+6
source

All Articles