Tak więc próbowałem użyć google maps lite fragment
wewnątrz scrollView
i nie mogłem pokazać mapy. Po usunięciu scrollView
i pozostawieniu fragmentu przez siebie, teraz jest, kiedy możesz zobaczyć mapę. Po prostu próbuję zrozumieć, dlaczego tak jest, a także, jeśli istnieje jakiś sposób, aby ten fragment był wyświetlany na końcu mojego scrollView.Fragment mapy google wewnątrz scrollView
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:map="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.joe.goout.EventDetails">
<ImageView
android:src="@mipmap/park1"
android:layout_width="fill_parent"
android:layout_height="150dp"
android:scaleType="centerCrop"
android:adjustViewBounds="true"
android:id="@+id/imageView"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true" />
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@+id/imageView"
android:id="@+id/scrollView"
android:fillViewport="false">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Medium Text"
android:id="@+id/textView"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" />
</ScrollView>
</RelativeLayout>
Wygląda na to, że odpowiedź została już udzielona: http://stackoverflow.com/questions/30525066/how-to-set-google-map-fragment-inside-scroll-view –
Mój problem polega na tym, że fragment mapy nie wyświetla się w scrollView. Używam google maps lite, naprawdę nie wiem, co mapa nie pokazuje wewnątrz scrollView, ale kiedy usunąłem z scrollView wszystko działa dobrze ... –
Czy próbowałeś nestedScrollView? To jest względnie nowy https://developer.android.com/reference/android/support/v4/widget/NestedScrollView.html –