Skip to content

Commit 74397e2

Browse files
authored
New sample: Query with CQL filters (#909)
1 parent 2a3fcec commit 74397e2

34 files changed

+2115
-0
lines changed

src/Android/Xamarin.Android/ArcGISRuntime.Xamarin.Samples.Android.csproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
</ItemGroup>
8181
<ItemGroup>
8282
<!-- Screenshots -->
83+
<None Include="Samples\Layers\QueryCQLFilters\QueryCQLFilters.jpg" />
8384
<None Include="Samples\Layers\DisplayOACollection\DisplayOACollection.jpg" />
8485
<None Include="Samples\Layers\BrowseOAFeatureService\BrowseOAFeatureService.jpg" />
8586
<None Include="Samples\Data\EditBranchVersioning\EditBranchVersioning.jpg" />
@@ -279,6 +280,7 @@
279280
</ItemGroup>
280281
<ItemGroup>
281282
<!-- Sample Code -->
283+
<Compile Include="Samples\Layers\QueryCQLFilters\QueryCQLFilters.cs" />
282284
<Compile Include="Helpers\ArcGISLoginPrompt.cs" />
283285
<Compile Include="Samples\Layers\DisplayOACollection\DisplayOACollection.cs" />
284286
<Compile Include="Samples\Layers\BrowseOAFeatureService\BrowseOAFeatureService.cs" />
@@ -805,6 +807,12 @@
805807
<Generator>MSBuild:UpdateGeneratedFiles</Generator>
806808
</AndroidResource>
807809
</ItemGroup>
810+
<ItemGroup>
811+
<AndroidResource Include="Resources\layout\QueryCQLFilters.xml">
812+
<SubType>Designer</SubType>
813+
<Generator>MSBuild:UpdateGeneratedFiles</Generator>
814+
</AndroidResource>
815+
</ItemGroup>
808816
<!-- Imports -->
809817
<Import Project="..\..\ArcGISRuntime.Samples.Shared\ArcGISRuntime.Samples.Shared.projitems" Label="Shared" />
810818
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<android.support.constraint.ConstraintLayout
3+
xmlns:android="http://schemas.android.com/apk/res/android"
4+
xmlns:tools="http://schemas.android.com/tools"
5+
xmlns:app="http://schemas.android.com/apk/res-auto"
6+
android:layout_width="match_parent"
7+
android:layout_height="match_parent"
8+
tools:context=".MainActivity">
9+
<Esri.ArcGISRuntime.UI.Controls.MapView
10+
android:layout_width="match_parent"
11+
android:layout_height="0dp"
12+
app:layout_constraintBottom_toTopOf="@+id/queryLayout"
13+
app:layout_constraintTop_toTopOf="parent"
14+
android:id="@+id/MapView"/>
15+
<LinearLayout
16+
android:orientation="vertical"
17+
android:layout_width="match_parent"
18+
android:layout_height="wrap_content"
19+
android:id="@+id/queryLayout"
20+
app:layout_constraintTop_toBottomOf="@+id/MapView"
21+
app:layout_constraintBottom_toBottomOf="parent"
22+
android:showDividers="middle"
23+
android:divider="@android:drawable/divider_horizontal_dark">
24+
<TextView
25+
android:layout_width="match_parent"
26+
android:layout_height="wrap_content"
27+
android:layout_weight="1"
28+
android:text="Where clause:"
29+
android:textSize="20dp" />
30+
<Spinner
31+
android:id="@+id/whereClauseSpinner"
32+
android:layout_height="wrap_content"
33+
android:text=""
34+
android:layout_width="match_parent"
35+
android:layout_weight="1"/>
36+
<LinearLayout
37+
android:orientation="horizontal"
38+
android:layout_width="match_parent"
39+
android:layout_height="wrap_content">
40+
<TextView
41+
android:layout_width="0dp"
42+
android:layout_height="wrap_content"
43+
android:layout_weight="0.5"
44+
android:text="Max features:"
45+
android:textSize="20dp" />
46+
<EditText
47+
android:id="@+id/maxFeatures"
48+
android:layout_weight="0.5"
49+
android:layout_width="0dp"
50+
android:layout_height="wrap_content"
51+
android:inputType="number"
52+
android:text="Max features:"/>
53+
</LinearLayout>
54+
<Switch
55+
android:id="@+id/dateSwitch"
56+
android:layout_weight="1"
57+
android:layout_width="match_parent"
58+
android:layout_height="wrap_content"
59+
android:text="Time extent:"
60+
android:checked="true"/>
61+
<LinearLayout
62+
android:orientation="horizontal"
63+
android:layout_width="match_parent"
64+
android:layout_height="wrap_content">
65+
<Button
66+
android:id="@+id/startDateButton"
67+
android:layout_width="0dp"
68+
android:layout_weight="0.5"
69+
android:layout_height="wrap_content"
70+
android:text="Start Date"/>
71+
<Button
72+
android:id="@+id/endDateButton"
73+
android:layout_width="0dp"
74+
android:layout_weight="0.5"
75+
android:layout_height="wrap_content"
76+
android:text="End Date"/>
77+
</LinearLayout>
78+
<LinearLayout
79+
android:orientation="horizontal"
80+
android:layout_width="match_parent"
81+
android:layout_height="wrap_content">
82+
<Button
83+
android:id="@+id/applyButton"
84+
android:layout_width="0dp"
85+
android:layout_weight="0.5"
86+
android:layout_height="wrap_content"
87+
android:text="Apply"/>
88+
<Button
89+
android:id="@+id/resetButton"
90+
android:layout_width="0dp"
91+
android:layout_weight="0.5"
92+
android:layout_height="wrap_content"
93+
android:text="Reset"/>
94+
</LinearLayout>
95+
</LinearLayout>
96+
<ProgressBar
97+
android:id="@+id/progressBar"
98+
android:layout_width="wrap_content"
99+
android:layout_height="wrap_content"
100+
app:layout_constraintTop_toTopOf="@+id/MapView"
101+
app:layout_constraintBottom_toBottomOf="@id/MapView"
102+
app:layout_constraintLeft_toLeftOf="@id/MapView"
103+
app:layout_constraintRight_toRightOf="@id/MapView"
104+
/>
105+
</android.support.constraint.ConstraintLayout>

0 commit comments

Comments
 (0)