当前位置: 代码迷 >> Android >> 安卓开发,布局调试
  详细解决方案

安卓开发,布局调试

热度:56   发布时间:2016-04-28 06:49:55.0
安卓开发高手进,布局调试
先贴图,代码后续


贴错误

怎么解决啊,急。这是一个简单的计算器程序

------解决方案--------------------
<xml? 这种标签钱不能有任何文字的。
------解决方案--------------------
<xml?
这个标签声明一次就好了啊,把第二个布局的那行删掉,顺便下面的网址那个也删掉!
------解决方案--------------------
引用:
继续代码<?xml version="1.0" encoding="utf-8"?>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:stretchColumns="1"
    android:textSize="32sp" >

    <TableRow>

        <EditText
            android:id="@+id/editText"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_span="4"
            android:cursorVisible="false"
            android:editable="false"
            android:gravity="right
------解决方案--------------------
center_vertical"
            android:lines="1"
            android:textSize="32sp" />
    </TableRow>

    <TableRow>

        <LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:orientation="horizontal"
            android:textSize="32sp" >

            <Button
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:textSize="32sp" />

            <Button
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:textSize="32sp" />

            <Button
                android:id="@+id/clear"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:text="C"
                android:textSize="32sp" />

            <Button
                android:id="@+id/add"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:text="+"
                android:textSize="32sp" />
        </LinearLayout>
    </TableRow>

    <TableRow>

        <LinearLayout
            android:layout_width="fill_parent"
  相关解决方案