私は1つのxmlにテーブルレイアウトを使用しました
次のように1つの背景画像を追加しようとしています:
android:background="@drawable/myimg"
デン私は次のようなエラーが発生しています
02-28 11:58:57.713: E/AndroidRuntime(850): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.test/com.test.Scan}: android.view.InflateException: Binary XML file line #3: Error inflating class android.widget.TableLayout
私は次のように試しました:
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/bkg1">
<TableLayout
android:id="@+id/linearLayout1_tblLayout1"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<TableRow
android:id="@+id/linearLayout1_tblLayout1_tableRow1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center" >
......
</TableRow>
</TableLayout>
</LinearLayout>
それから私も同じエラーが発生しています。
誰か助けてください。
ありがとうございました。