Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Commit 6f24811

Browse files
langsmithLangston Smith
authored and
Langston Smith
committed
initial additions
1 parent b205a1b commit 6f24811

File tree

8 files changed

+398
-1
lines changed

8 files changed

+398
-1
lines changed

MapboxAndroidDemo/src/global/java/com/mapbox/mapboxandroiddemo/MainActivity.java

+26
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
import com.mapbox.mapboxandroiddemo.examples.camera.RestrictCameraActivity;
4141
import com.mapbox.mapboxandroiddemo.examples.camera.SlowlyRotatingCameraActivity;
4242
import com.mapbox.mapboxandroiddemo.examples.dds.AddRainFallStyleActivity;
43+
import com.mapbox.mapboxandroiddemo.examples.dds.AnimatedDashLineActivity;
4344
import com.mapbox.mapboxandroiddemo.examples.dds.BathymetryActivity;
4445
import com.mapbox.mapboxandroiddemo.examples.dds.ChoroplethJsonVectorMixActivity;
4546
import com.mapbox.mapboxandroiddemo.examples.dds.ChoroplethZoomChangeActivity;
@@ -587,6 +588,15 @@ private void initializeModels() {
587588
null,
588589
R.string.activity_style_image_source_url, false, BuildConfig.MIN_SDK_VERSION
589590
));
591+
exampleItemModels.add(new ExampleItemModel(
592+
R.id.nav_styles,
593+
R.string.activity_styles_click_to_add_image_title,
594+
R.string.activity_styles_click_to_add_image_description,
595+
new Intent(MainActivity.this, ClickToAddImageActivity.class),
596+
null,
597+
R.string.activity_styles_click_to_add_image_url, false, BuildConfig.MIN_SDK_VERSION
598+
));
599+
590600
exampleItemModels.add(new ExampleItemModel(
591601
R.id.nav_styles,
592602
R.string.activity_style_image_source_time_lapse_title,
@@ -1344,6 +1354,22 @@ private void initializeModels() {
13441354
null,
13451355
R.string.activity_dds_polygon_revealed_hole_outline_url, false, BuildConfig.MIN_SDK_VERSION));
13461356

1357+
exampleItemModels.add(new ExampleItemModel(
1358+
R.id.nav_dds,
1359+
R.string.activity_dashed_line_directions_picker_title,
1360+
R.string.activity_dashed_line_directions_picker_description,
1361+
new Intent(MainActivity.this, DashedLineDirectionsPickerActivity.class),
1362+
null,
1363+
R.string.activity_dashed_line_directions_picker_url, true, BuildConfig.MIN_SDK_VERSION));
1364+
1365+
exampleItemModels.add(new ExampleItemModel(
1366+
R.id.nav_dds,
1367+
R.string.activity_dds_animated_dash_line_title,
1368+
R.string.activity_dds_animated_dash_line_description,
1369+
new Intent(MainActivity.this, AnimatedDashLineActivity.class),
1370+
null,
1371+
R.string.activity_dds_animated_dash_line_url, true, BuildConfig.MIN_SDK_VERSION));
1372+
13471373
exampleItemModels.add(new ExampleItemModel(
13481374
R.id.nav_basics,
13491375
R.string.activity_basic_simple_mapview_title,

MapboxAndroidDemo/src/global/java/com/mapbox/mapboxandroiddemo/account/LandingActivity.java

+5
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
import android.widget.CheckBox;
1111
import android.widget.Toast;
1212

13+
import com.afollestad.materialdialogs.DialogAction;
14+
import com.afollestad.materialdialogs.MaterialDialog;
15+
import com.google.firebase.perf.metrics.AddTrace;
16+
import com.mapbox.mapboxandroiddemo.MainActivity;
17+
import com.mapbox.mapboxandroiddemo.commons.AnalyticsTracker;
1318
import com.github.javiersantos.materialstyleddialogs.MaterialStyledDialog;
1419
import com.google.firebase.perf.metrics.AddTrace;
1520
import com.mapbox.mapboxandroiddemo.MainActivity;

MapboxAndroidDemo/src/main/AndroidManifest.xml

+7
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,13 @@
610610
android:name="android.support.PARENT_ACTIVITY"
611611
android:value="com.mapbox.mapboxandroiddemo.MainActivity" />
612612
</activity>
613+
<activity
614+
android:name=".examples.dds.AnimatedDashLineActivity"
615+
android:label="@string/activity_dds_animated_dash_line_title">
616+
<meta-data
617+
android:name="android.support.PARENT_ACTIVITY"
618+
android:value="com.mapbox.mapboxandroiddemo.MainActivity" />
619+
</activity>
613620
<activity
614621
android:name=".examples.dds.StyleLineIdentityPropertyActivity"
615622
android:label="@string/activity_dds_style_line_identity_property_title">

0 commit comments

Comments
 (0)