黑马程序员技术交流社区

标题: Tablelayout中一添加span标签就报错 [打印本页]

作者: huihui520111    时间: 2016-9-7 17:44
标题: Tablelayout中一添加span标签就报错
我要做一个用户登录的界面,用的是tableLayout布局,里面设置如图。需要设置span,但一输入就报错。请问这是因为什么,该怎么改F:\1.png
F:\2.png

代码如下
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:stretchColumns="1">
这是开头的设置文件
<TableRow >
        <Button
            android:id="@+id/login"
            android:layout_height="wrap_content"
            android:text="login"
            layout_span
            />
    </TableRow>
这是错误的地方




欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) 黑马程序员IT技术论坛 X3.2