Android layouts are defined in XML with this namespace declared in the root element:

xmlns:android="http://schemas.android.com/apk/res/android"

Example of an element:

<TextView android:layout_width="fill_parent" android:layout_height="wrap_content" />
  1. Why is the android prefix used instead of ommitting it like xmlns="http... ?
  2. Why is the prefix used only in attributes and not in elements?
Edit
Report