LinearLayout中的布局参数无效:layout_column

时间:2013-03-26 22:15:11

标签: android android-layout warnings

我收到此警告,该程序仍然构建并正常运行。我只是想知道如何摆脱它。

<ImageView
        android:id="@+id/myimage4"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        **android:layout_column="0"
        android:layout_row="0"**
        android:src="@drawable/ic_launcher" />

1 个答案:

答案 0 :(得分:3)

android:layout_columnandroid:layout_row仅在表格布局中有效,并且在LinearLayout中不存在。如果您使用的是LinearLayout,则不需要它们,并且可以安全地删除它。