<?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 select a polygon android in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/select-a-polygon-android/m-p/564288#M3833</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i need select a polygon in mapView. how i can do it? in android&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 18 Feb 2017 07:41:53 GMT</pubDate>
    <dc:creator>mahshidfallah1</dc:creator>
    <dc:date>2017-02-18T07:41:53Z</dc:date>
    <item>
      <title>select a polygon android</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/select-a-polygon-android/m-p/564288#M3833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i need select a polygon in mapView. how i can do it? in android&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Feb 2017 07:41:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/select-a-polygon-android/m-p/564288#M3833</guid>
      <dc:creator>mahshidfallah1</dc:creator>
      <dc:date>2017-02-18T07:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: select a polygon android</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/select-a-polygon-android/m-p/564289#M3834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 05:58:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/select-a-polygon-android/m-p/564289#M3834</guid>
      <dc:creator>mahshidfallah1</dc:creator>
      <dc:date>2017-02-20T05:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: select a polygon android</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/select-a-polygon-android/m-p/564290#M3835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mahshid,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is your Polygon a &lt;A href="https://developers.arcgis.com/android/latest/guide/features-and-graphics.htm"&gt;Graphic or a Feature&lt;/A&gt;? Both can be selected, but you will need to know what you are trying to select.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's one example of selecting Features from a FeatureLayer by performing a spatial query - selecting all features within a certain buffer distance of a point -&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/android/latest/guide/edit-features.htm#ESRI_SECTION1_4213B7F672304847B13FD6F9E38622B3" title="https://developers.arcgis.com/android/latest/guide/edit-features.htm#ESRI_SECTION1_4213B7F672304847B13FD6F9E38622B3"&gt;Edit features—ArcGIS Runtime SDK for Android | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are working with Graphics, there is no equivalent method that will query and select graphics in a GraphicsOverlay. However, you can use the &lt;A href="https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/mapping/view/Graphic.html#setSelected(boolean)"&gt;Graphic.setSelected method&lt;/A&gt; to select an individual Graphic. You can get a reference the Graphic that a user tapped on as shown in this sample - &lt;A class="link-titled" href="https://developers.arcgis.com/android/latest/sample-code/indentify-graphics-hittest.htm" title="https://developers.arcgis.com/android/latest/sample-code/indentify-graphics-hittest.htm"&gt;Identify Graphics Hittest—ArcGIS Runtime SDK for Android | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;- so you could just add the call to setSelected to that sample code to see how it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Shelly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2017 11:44:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/select-a-polygon-android/m-p/564290#M3835</guid>
      <dc:creator>ShellyGill1</dc:creator>
      <dc:date>2017-02-20T11:44:45Z</dc:date>
    </item>
  </channel>
</rss>

