【发布时间】:2011-07-13 16:43:33
【问题描述】:
我很难过,我已经推断它在更大布局的这个合并部分中(edit 谢谢,是的第 10 行很明显,第 10 行的 textview 很明显需要宽度和高度,但仅使用代码中存在的文本视图没有崩溃,我已将其粘贴到第 #10 行)
<merge xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/frameLayoutLatest">
<LinearLayout android:id="@+id/subLinLayoutHeader" android:orientation="horizontal" android:layout_gravity="center_horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:src="@drawable/layouttriangle" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal"></ImageView>
</LinearLayout>
<TableLayout android:id="@+id/subLinLayout" android:layout_below="@id/subLinLayoutHeader" android:layout_width="wrap_content" android:layout_height="wrap_content">
<TableRow android:layout_width="wrap_content" android:layout_height="wrap_content">
<LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical">
<ScrollView android:layout_width="wrap_content" android:layout_height="wrap_content">
<!-- list view goes here -->
<TextView android:layout_gravity="center_vertical|center_horizontal" android:text="Dummy text" android:textColor="#ffffff" android:textSize="16dip"></TextView>
</ScrollView>
</LinearLayout>
</TableRow>
<TableRow android:layout_width="wrap_content" android:layout_height="wrap_content">
<LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content">
<TableLayout android:layout_width="wrap_content" android:layout_height="wrap_content">
<TableRow android:layout_width="wrap_content" android:layout_height="wrap_content">
<TextView android:layout_gravity="center_vertical|center_horizontal" android:text="Latest Articles" android:textColor="#ffffff" android:textSize="16dip"></TextView>
</TableRow>
</TableLayout>
<ScrollView android:layout_width="wrap_content" android:layout_height="wrap_content">
<!-- list view goes here -->
</ScrollView>
</LinearLayout>
</TableRow>
</TableLayout>
沃尔多在哪里?
【问题讨论】:
标签: android exception layout resources crash