Why this line xmlns:android=”http://schemas.android.com/apk/res/android” must be the first in the layout xml file?
In XML, xmlns declares a Namespace. In fact, when you do: Instead of calling android:id, the xml will use http://schemas.android.com/apk/res/android:id to be unique. Generally this page doesn’t exist (it’s a URI, not a URL), but sometimes it is a URL that explains the used namespace. The namespace has pretty much the same uses as the package name in … Read more