안드로이드에서 중첩 된 레이아웃을 2 개 가질 수 있습니까? 스크롤보기에서 테이블 레이아웃이 있습니다. 다른 레이아웃 유형을 추가하고 싶습니다 (아직 어떤 패턴인지는 모르지만).하지만 충돌 시도는 모두 시도해보십시오.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에 하나의 레이아웃이 있으면로드됩니다.