通常はアクティビティを分離するだけですが、ビューテキストビュー、リスト、およびマップビューを含む画面を表示したいと思います。アクティビティはリストビューまたはマップビューのいずれかしか拡張できないことがわかっているため、これを実行する方法がわかりません。
このようなxmlファイルが1つあり、これをmain.xmlと呼びます。
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:id="@+id/relativeLayout1"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="fill_parent" android:layout_width="fill_parent">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent" android:layout_height="fill_parent"
    android:orientation="vertical" android:background="#ffffff">
    <TextView android:layout_width="wrap_content"
        android:layout_height="wrap_content" android:id="@+id/tvName"
        android:textColor="@color/dark" android:text="Name"></TextView>
    <EditText android:layout_width="match_parent"
        android:layout_height="wrap_content" android:id="@+id/etName"></EditText>
    <Button android:layout_width="wrap_content"
        android:layout_height="wrap_content" android:id="@+id/btnAdd"
        android:text="Add location"></Button>
    <ListView android:layout_height="wrap_content"
        android:layout_width="match_parent" android:id="@android:id/list"></ListView>
</LinearLayout>
大きな地図である別のxmlファイル
<?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">
    <com.google.android.maps.MapView
        android:id="@+id/mapsView" android:layout_width="fill_parent"
        android:layout_height="fill_parent" android:clickable="true"
        android:apiKey="myapikey" />
メインアクティビティは最初のxmlシートをリストで膨らませますが、マップをこれに追加するにはどうすればよいですか?マップアクティビティクラスを拡張するクラスをネストし、ビューを追加する方法はありますか?これが私が考えていたものです
public class AddLocationActivity extends ListActivity{
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
    getWindow().setLayout(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT);
}
public class ShowMap extends MapActivity{
            public ShowMap(){
             //maybe get the map.xml and add the view somehow?
             }
    @Override
    protected boolean isRouteDisplayed() {
        // TODO Auto-generated method stub
        return false;
    }
}
}