<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Need Help Putting MapView inside ScrollView in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/need-help-putting-mapview-inside-scrollview/m-p/292563#M1958</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay I have an app that shows the map within a scrollview layout.&amp;nbsp; The problem is I can pan the map left and right but when I try up and down the scrollview touch event interferes with the mapview touch event.&amp;nbsp; Anyone else run into this issue if so what is a good way to override the scrollview touch event.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 May 2014 15:04:51 GMT</pubDate>
    <dc:creator>JosephDwyer</dc:creator>
    <dc:date>2014-05-09T15:04:51Z</dc:date>
    <item>
      <title>Need Help Putting MapView inside ScrollView</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/need-help-putting-mapview-inside-scrollview/m-p/292563#M1958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay I have an app that shows the map within a scrollview layout.&amp;nbsp; The problem is I can pan the map left and right but when I try up and down the scrollview touch event interferes with the mapview touch event.&amp;nbsp; Anyone else run into this issue if so what is a good way to override the scrollview touch event.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 15:04:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/need-help-putting-mapview-inside-scrollview/m-p/292563#M1958</guid>
      <dc:creator>JosephDwyer</dc:creator>
      <dc:date>2014-05-09T15:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help Putting MapView inside ScrollView</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/need-help-putting-mapview-inside-scrollview/m-p/292564#M1959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was able to figure out a solution for inserting a MapView into a ScrollView and get the map to scroll properly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the solution I came up with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Put this in the onCreate:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;MyTouchListener tl = new MyTouchListener(this, mMapView); &amp;nbsp; mMapView.setOnTouchListener(tl);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I created a class that extended MapOnTouchListener.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;class MyTouchListener extends MapOnTouchListener{ &amp;nbsp; ScrollView sv; &amp;nbsp; public MyTouchListener(Context c, MapView m){ &amp;nbsp;&amp;nbsp; super(c, m); &amp;nbsp; } &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // gets the touch event for the MapView &amp;nbsp; public boolean onTouch(View v, MotionEvent event){ &amp;nbsp;&amp;nbsp; sv = (ScrollView) findViewById(R.id.scrollview); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int action = event.getAction(); &amp;nbsp;&amp;nbsp; switch(action){ &amp;nbsp;&amp;nbsp; case MotionEvent.ACTION_DOWN: &amp;nbsp;&amp;nbsp;&amp;nbsp; // Disallow your scrollview id to intercept the touch event &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sv.requestDisallowInterceptTouchEvent(true); &amp;nbsp;&amp;nbsp;&amp;nbsp; break; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; case MotionEvent.ACTION_UP: &amp;nbsp;&amp;nbsp;&amp;nbsp; // Gives touch control back to the ScrollView &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sv.requestDisallowInterceptTouchEvent(false); &amp;nbsp;&amp;nbsp;&amp;nbsp; break; &amp;nbsp;&amp;nbsp; } &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; super.onTouch(v, event); &amp;nbsp;&amp;nbsp; return true; &amp;nbsp; } &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 May 2014 13:28:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/need-help-putting-mapview-inside-scrollview/m-p/292564#M1959</guid>
      <dc:creator>JosephDwyer</dc:creator>
      <dc:date>2014-05-12T13:28:02Z</dc:date>
    </item>
  </channel>
</rss>

