Integrate Drop-In UI
Add NavigationView
to your XML layout
<com.mapbox.navigation.dropin.NavigationView
android:id="@+id/navigationView"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:accessToken="<your mapbox public access token>" />
Load the layout in your activity
class MyActivity: AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.your_activity_layout)
}
}
EXAMPLE
Render Drop-In UI using NavigationView
Learn how to integrate NavigationView
with your application
Was this page helpful?