Skip to content

Commit

Permalink
New sample: Query with CQL filters (#909)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZackAllen authored Aug 11, 2021
1 parent 2a3fcec commit 74397e2
Show file tree
Hide file tree
Showing 34 changed files with 2,115 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
</ItemGroup>
<ItemGroup>
<!-- Screenshots -->
<None Include="Samples\Layers\QueryCQLFilters\QueryCQLFilters.jpg" />
<None Include="Samples\Layers\DisplayOACollection\DisplayOACollection.jpg" />
<None Include="Samples\Layers\BrowseOAFeatureService\BrowseOAFeatureService.jpg" />
<None Include="Samples\Data\EditBranchVersioning\EditBranchVersioning.jpg" />
Expand Down Expand Up @@ -279,6 +280,7 @@
</ItemGroup>
<ItemGroup>
<!-- Sample Code -->
<Compile Include="Samples\Layers\QueryCQLFilters\QueryCQLFilters.cs" />
<Compile Include="Helpers\ArcGISLoginPrompt.cs" />
<Compile Include="Samples\Layers\DisplayOACollection\DisplayOACollection.cs" />
<Compile Include="Samples\Layers\BrowseOAFeatureService\BrowseOAFeatureService.cs" />
Expand Down Expand Up @@ -805,6 +807,12 @@
<Generator>MSBuild:UpdateGeneratedFiles</Generator>
</AndroidResource>
</ItemGroup>
<ItemGroup>
<AndroidResource Include="Resources\layout\QueryCQLFilters.xml">
<SubType>Designer</SubType>
<Generator>MSBuild:UpdateGeneratedFiles</Generator>
</AndroidResource>
</ItemGroup>
<!-- Imports -->
<Import Project="..\..\ArcGISRuntime.Samples.Shared\ArcGISRuntime.Samples.Shared.projitems" Label="Shared" />
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
Expand Down
105 changes: 105 additions & 0 deletions src/Android/Xamarin.Android/Resources/layout/QueryCQLFilters.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
<?xml version="1.0" encoding="utf-8" ?>
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<Esri.ArcGISRuntime.UI.Controls.MapView
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintBottom_toTopOf="@+id/queryLayout"
app:layout_constraintTop_toTopOf="parent"
android:id="@+id/MapView"/>
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/queryLayout"
app:layout_constraintTop_toBottomOf="@+id/MapView"
app:layout_constraintBottom_toBottomOf="parent"
android:showDividers="middle"
android:divider="@android:drawable/divider_horizontal_dark">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Where clause:"
android:textSize="20dp" />
<Spinner
android:id="@+id/whereClauseSpinner"
android:layout_height="wrap_content"
android:text=""
android:layout_width="match_parent"
android:layout_weight="1"/>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="0.5"
android:text="Max features:"
android:textSize="20dp" />
<EditText
android:id="@+id/maxFeatures"
android:layout_weight="0.5"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:inputType="number"
android:text="Max features:"/>
</LinearLayout>
<Switch
android:id="@+id/dateSwitch"
android:layout_weight="1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Time extent:"
android:checked="true"/>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<Button
android:id="@+id/startDateButton"
android:layout_width="0dp"
android:layout_weight="0.5"
android:layout_height="wrap_content"
android:text="Start Date"/>
<Button
android:id="@+id/endDateButton"
android:layout_width="0dp"
android:layout_weight="0.5"
android:layout_height="wrap_content"
android:text="End Date"/>
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<Button
android:id="@+id/applyButton"
android:layout_width="0dp"
android:layout_weight="0.5"
android:layout_height="wrap_content"
android:text="Apply"/>
<Button
android:id="@+id/resetButton"
android:layout_width="0dp"
android:layout_weight="0.5"
android:layout_height="wrap_content"
android:text="Reset"/>
</LinearLayout>
</LinearLayout>
<ProgressBar
android:id="@+id/progressBar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="@+id/MapView"
app:layout_constraintBottom_toBottomOf="@id/MapView"
app:layout_constraintLeft_toLeftOf="@id/MapView"
app:layout_constraintRight_toRightOf="@id/MapView"
/>
</android.support.constraint.ConstraintLayout>
Loading

0 comments on commit 74397e2

Please sign in to comment.