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

Commit d38b096

Browse files
langsmithLangston Smith
authored andcommitted
initial additions
1 parent f8b6294 commit d38b096

File tree

8 files changed

+402
-0
lines changed

8 files changed

+402
-0
lines changed

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

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import com.mapbox.mapboxandroiddemo.examples.camera.RestrictCameraActivity;
3434
import com.mapbox.mapboxandroiddemo.examples.camera.SlowlyRotatingCameraActivity;
3535
import com.mapbox.mapboxandroiddemo.examples.dds.AddRainFallStyleActivity;
36+
import com.mapbox.mapboxandroiddemo.examples.dds.AnimatedDashLineActivity;
3637
import com.mapbox.mapboxandroiddemo.examples.dds.BathymetryActivity;
3738
import com.mapbox.mapboxandroiddemo.examples.dds.ChoroplethJsonVectorMixActivity;
3839
import com.mapbox.mapboxandroiddemo.examples.dds.ChoroplethZoomChangeActivity;
@@ -630,6 +631,15 @@ private void initializeModels() {
630631
null,
631632
R.string.activity_style_image_source_url, false, BuildConfig.MIN_SDK_VERSION
632633
));
634+
exampleItemModels.add(new ExampleItemModel(
635+
R.id.nav_styles,
636+
R.string.activity_styles_click_to_add_image_title,
637+
R.string.activity_styles_click_to_add_image_description,
638+
new Intent(MainActivity.this, ClickToAddImageActivity.class),
639+
null,
640+
R.string.activity_styles_click_to_add_image_url, false, BuildConfig.MIN_SDK_VERSION
641+
));
642+
633643
exampleItemModels.add(new ExampleItemModel(
634644
R.id.nav_styles,
635645
R.string.activity_style_image_source_time_lapse_title,
@@ -1607,6 +1617,22 @@ private void initializeModels() {
16071617
null,
16081618
R.string.activity_dds_circle_icon_toggle_on_click_url, true, BuildConfig.MIN_SDK_VERSION));
16091619

1620+
exampleItemModels.add(new ExampleItemModel(
1621+
R.id.nav_dds,
1622+
R.string.activity_dashed_line_directions_picker_title,
1623+
R.string.activity_dashed_line_directions_picker_description,
1624+
new Intent(MainActivity.this, DashedLineDirectionsPickerActivity.class),
1625+
null,
1626+
R.string.activity_dashed_line_directions_picker_url, true, BuildConfig.MIN_SDK_VERSION));
1627+
1628+
exampleItemModels.add(new ExampleItemModel(
1629+
R.id.nav_dds,
1630+
R.string.activity_dds_animated_dash_line_title,
1631+
R.string.activity_dds_animated_dash_line_description,
1632+
new Intent(MainActivity.this, AnimatedDashLineActivity.class),
1633+
null,
1634+
R.string.activity_dds_animated_dash_line_url, true, BuildConfig.MIN_SDK_VERSION));
1635+
16101636
exampleItemModels.add(new ExampleItemModel(
16111637
R.id.nav_basics,
16121638
R.string.activity_basic_simple_mapview_title,

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
import android.widget.CheckBox;
88
import android.widget.Toast;
99

10+
import com.afollestad.materialdialogs.DialogAction;
11+
import com.afollestad.materialdialogs.MaterialDialog;
12+
import com.google.firebase.perf.metrics.AddTrace;
13+
import com.mapbox.mapboxandroiddemo.MainActivity;
14+
import com.mapbox.mapboxandroiddemo.commons.AnalyticsTracker;
1015
import com.github.javiersantos.materialstyleddialogs.MaterialStyledDialog;
1116
import com.google.firebase.perf.metrics.AddTrace;
1217
import com.mapbox.mapboxandroiddemo.MainActivity;

MapboxAndroidDemo/src/main/AndroidManifest.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -782,6 +782,13 @@
782782
android:name="android.support.PARENT_ACTIVITY"
783783
android:value="com.mapbox.mapboxandroiddemo.MainActivity" />
784784
</activity>
785+
<activity
786+
android:name=".examples.dds.AnimatedDashLineActivity"
787+
android:label="@string/activity_dds_animated_dash_line_title">
788+
<meta-data
789+
android:name="android.support.PARENT_ACTIVITY"
790+
android:value="com.mapbox.mapboxandroiddemo.MainActivity" />
791+
</activity>
785792
<activity
786793
android:name=".examples.dds.StyleLineIdentityPropertyActivity"
787794
android:label="@string/activity_dds_style_line_identity_property_title">

0 commit comments

Comments
 (0)