MapView (mapy android api v2) wewnątrz układu fragmentów nie pokazuje

Używam viewpagera do przesuwania między dwiema zakładkami paska akcji (używany kreator zaćmienia dla tego rodzaju nawigacji). Używam map android v2 api.

Chcę mieć mapview, button i textview wewnątrz jednej z moich kart (chyba że mapfragment nie jest możliwy).

Nadmuchuję układ mojego fragmentu z xml w ten sposób:

public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {

        // Inflate the layout for this fragment
        return inflater.inflate(R.layout.first_tab_fragment, container, false);
    }
}

Mój first_tab_fragment.xml:

<?xml version="1.0" encoding="utf-8"?>

  <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
   android:layout_height="match_parent" >


<com.google.android.gms.maps.MapView
    android:id="@+id/mapview"
    android:layout_width="100dip"
    android:layout_height="100dip"
    android:layout_alignParentTop="true"
    android:layout_alignRight="@+id/textView1"
    android:layout_marginRight="15dp" >
</com.google.android.gms.maps.MapView>

<Button
    android:id="@+id/button1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_above="@+id/textView1"
    android:layout_centerHorizontal="true"
    android:text="Button" />

<TextView
    android:id="@+id/textView1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentBottom="true"
    android:layout_alignRight="@+id/button1"
    android:layout_marginBottom="133dp"
    android:text="TextView" />

MapView nie jest wyświetlany, wystarczy widok tekstowy i przycisk. Nie mam też błędów. Czy muszę napisać jakiś kod, aby zainicjować mapview?

questionAnswers(1)

yourAnswerToTheQuestion