Viz*_*zle 2 eclipse android adt
我是这个网站的新手,请原谅我的格式问题.我的问题是当我尝试在我的xml文档的图形布局选项卡中向我的xml TableLayout添加一行时,我在eclipse中收到此错误.我的错误如下
Exception raised during rendering: / by zero
Exception details are logged in Window > Show View > Error Log
Run Code Online (Sandbox Code Playgroud)
这是我的XML代码.出于某种原因,即使行自动添加到main.xml文件中,图形布局也会显示错误.
<TableLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/tableLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/white"
android:padding="5dp"
android:stretchColumns="*" >
<TableRow
android:id="@+id/tableRow1"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
</TableRow>
</TableLayout>
Run Code Online (Sandbox Code Playgroud)
如果您对我做错了什么,或者您需要更多信息,请告诉我.
请android:stretchColumns="*"从TableLayout中删除.
或者请提供任何数字而不是'*'之类的android:stretchColumns="2"
| 归档时间: |
|
| 查看次数: |
1310 次 |
| 最近记录: |