xmlns:android是一个XML命名空间,告诉Android开发工具你准备使用Android命名空间里的一些通用属性。在所有AndroidXML设计文件中最外层的标记必须使用这个树形。
它可以提示你输入什么,不该输入什么,什么是对的,什么是错的,也可以理解为语法文件。或者语法判断器什么的。
1 2 3 4 5 6 7 8 9 | <?xml version="1.0" encoding="utf-8"?> <TextView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/text" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center_vertical|center_horizontal" android:text="translucent_background" /> |
1 2 3 4 5 6 7 8 | <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.com.fblife" android:versionCode="1" android:versionName="1.0"> ...... </manifest> |
啊