我想知道是否有可能在android中有2個嵌套的佈局?我在滾動視圖中有表格佈局。我想添加另一個佈局類型(不知道哪一個),但我嘗試崩潰的每個人。嵌套在滾動視圖中的佈局(其中一個表格佈局) - Android?
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TableLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
</TableLayout>
<TableLayout
android:id="@+id/tblLayout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
.... rows here ....
</TableLayout>
</ScrollView>
這會崩潰的SetContentView(Resource.Layout.MyLayout);
「這下要執行的語句時,從 當前函數這個線程的回報。」
如果我只在ScrollView中有一個佈局,它將加載。