I have a ScrollView with many views in it (TextView, Buttons, ...) and at the end there is an osmdroid-mapview, which is just a map. When I touch on the mapview, android does not move the map (zooming or changing the location of the map) but it moves the scrollview. For example, I move the finger up what means that the map should move south. But instead the scrollview moves down. My question is: Is it possible that the user can change the mapview and not the scrollview? Can I somehow block the mapview for scrolling interaction? But still the mapview has to be part of the scrollview.
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<org.osmdroid.views.MapView
android:id="@+id/mapBbox"
android:layout_width="373dp"
android:layout_height="349dp"
android:layout_marginTop="40dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.448"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/radioGroup" />
...
</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>