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

Commit

Permalink
Adding LocationComponent camera mode example (#1038)
Browse files Browse the repository at this point in the history
  • Loading branch information
Langston Smith authored Jun 18, 2019
1 parent 1089950 commit cf42295
Show file tree
Hide file tree
Showing 14 changed files with 557 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
import com.mapbox.mapboxandroiddemo.examples.labs.ValueAnimatorIconAnimationActivity;
import com.mapbox.mapboxandroiddemo.examples.location.KotlinLocationComponentActivity;
import com.mapbox.mapboxandroiddemo.examples.location.LocationComponentActivity;
import com.mapbox.mapboxandroiddemo.examples.location.LocationComponentCameraOptionsActivity;
import com.mapbox.mapboxandroiddemo.examples.location.LocationComponentFragmentActivity;
import com.mapbox.mapboxandroiddemo.examples.location.LocationComponentOptionsActivity;
import com.mapbox.mapboxandroiddemo.examples.offline.OfflineManagerActivity;
Expand Down Expand Up @@ -807,6 +808,15 @@ private void initializeModels() {
R.string.activity_location_location_component_options_url, false, BuildConfig.MIN_SDK_VERSION)
);

exampleItemModels.add(new ExampleItemModel(
R.id.nav_location,
R.string.activity_location_location_component_camera_options_title,
R.string.activity_location_location_component_camera_options_description,
new Intent(MainActivity.this, LocationComponentCameraOptionsActivity.class),
null,
R.string.activity_location_location_component_camera_options_url, false, BuildConfig.MIN_SDK_VERSION)
);

exampleItemModels.add(new ExampleItemModel(
R.id.nav_camera,
R.string.activity_camera_animate_title,
Expand Down
7 changes: 7 additions & 0 deletions MapboxAndroidDemo/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,13 @@
android:name="android.support.PARENT_ACTIVITY"
android:value="com.mapbox.mapboxandroiddemo.MainActivity" />
</activity>
<activity
android:name=".examples.location.LocationComponentCameraOptionsActivity"
android:label="@string/activity_location_location_component_camera_options_title">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.mapbox.mapboxandroiddemo.MainActivity" />
</activity>
<activity
android:name=".examples.location.LocationComponentOptionsActivity"
android:label="@string/activity_location_location_component_options_title">
Expand Down
Loading

2 comments on commit cf42295

@Ridwan-coder
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

heloo friend..i have problem with the android project u made it..the name is customize icon map
i cant find your drwble icon

@langsmith
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which example is this?

Please sign in to comment.