How can i add mappls geofence view to my android application?

A ready to use UI Widget to create/edit GeoFence in an Android application.

Follow the steps listed below to implement this :

Add below dependency in app level build.gradle file
implementation 'com.mappls.sdk:geofence-ui:1.0.0'
Add GeoFence View to your application
  • You can add GeoFence view in two ways
  1. Using XML
  2. Using Java
<com.mappls.sdk.geofence.ui.views.GeoFenceView  
  android:id="@+id/geo_fence_view" 
  android:layout_width="match_parent"  
  android:layout_height="match_parent" />
Using Java
//To create with default ui and styles
geoFenceView = GeoFenceView(this)

//Or If you want to change the properties of view
geoFenceView = GeoFenceView(this, GeoFenceOptions.builder().showUI(false).build())

For more info on intializing this visit here : mappls-android-sdk/docs/v1.0.7/GeoFence-View.md at main · mappls-api/mappls-android-sdk · GitHub