我想知道是否有可能在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中有一个布局,它将加载。