xmlns:android="http://schemas.android.com/apk/res/android"这段代码加在xml文件头部就会报错,是怎么回事?
只能放在根节点 上,比如
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"