android - Map inside scrollview not scrollable -


i have map fragment inside vertical scrollview. want scrollable. not working. have tried adding transparent image , custom scrollview these answers: how set google map fragment inside scroll view

google maps api v2 supportmapfragment inside scrollview - users cannot scroll map vertically

my layout structure:

<?xml version="1.0" encoding="utf-8"?> <scrollview xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/scrollview" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".activities.tripdetailsactivity">  <linearlayout     android:layout_width="match_parent"     android:layout_height="match_parent"     android:background="#ecf0f1"     android:orientation="vertical">      <android.support.v7.widget.cardview         android:id="@+id/card_map"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:layout_margin="10dp">          <linearlayout             android:layout_width="match_parent"             android:layout_height="match_parent"             android:background="@color/colorcard"             android:orientation="vertical"             android:weightsum="12">              <textview                 android:id="@+id/triptxt"                 android:layout_width="match_parent"                 android:layout_height="0dp"                 android:layout_marginleft="20dp"                 android:layout_margintop="20dp"                 android:layout_marginbottom="5dp"                 android:layout_weight="3"                 android:text="trip"                 android:textcolor="@color/colortextcard"                 android:textsize="20sp" />              <fragment                 android:id="@+id/map"                 android:name="com.google.android.gms.maps.supportmapfragment"                 android:layout_width="match_parent"                 android:layout_height="300dp"                 android:layout_margin="10dp"                 tools:context="com.example.keelindemo.activities.map" />              <textview                 android:id="@+id/start_point"                 android:layout_width="match_parent"                 android:layout_height="0dp"                 android:layout_marginleft="10dp"                 android:layout_weight="2"                 android:drawableleft="@drawable/flag_start"                 android:drawablepadding="10dp"                 android:gravity="center_vertical"                 android:textcolor="@color/colortextcard" />              <textview                 android:id="@+id/end_point"                 android:layout_width="match_parent"                 android:layout_height="0dp"                 android:layout_marginbottom="10dp"                 android:layout_marginleft="10dp"                 android:layout_margintop="10dp"                 android:layout_weight="2"                 android:drawableleft="@drawable/flag_end"                 android:drawablepadding="10dp"                 android:gravity="center_vertical"                 android:textcolor="@color/colortextcard" />          </linearlayout>      </android.support.v7.widget.cardview> 

please suggest solution. trying on marshmallow.

you can scroll google map inside scrollview. see below link describe how scroll map inside scrollview in android: http://newtech4you4ever.blogspot.in/2016/08/scroll-googlemap-in-scrollview-android.html


Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -