diff --git a/android-navigation/README.md b/android-navigation/README.md new file mode 100644 index 0000000..769a4d3 --- /dev/null +++ b/android-navigation/README.md @@ -0,0 +1,30 @@ +## Add turn-by-turn navigation to an Android app + +This repo is a demo application to help developers understand how to use [Mapbox Navigation SDK for Android](https://docs.mapbox.com/android/navigation/) in an Android application using Kotlin and Jetpack Compose. + +The corresponding walk-through tutorial is available on [docs.mapbox.com](https://docs.mapbox.com/help/tutorials/android-navigation/). + +The app demonstrates the use of [`NavigationView`](https://docs.mapbox.com/android/navigation/v2/guides/drop-in-ui/integrate-drop-in-ui/) as a "drop-in" navigation experience for Android. The user can choose from a list of predefined destinations. Tapping one passes the current device location coordinates and the destination coordinates to `NavigationLoader`, which calculates routes. The routes are then used to render `NavigationView`, which presents turn-by-turn navigation with voice prompts in a fullscreen view. + +### Requirements +- A [Mapbox Account](https://console.mapbox.com) and Access Token +- Android Studio + +#### Configure your download token +Mapbox's Navigation SDK is hosted on a private Maven repository, so getting the project to build requires a **secret** token with the `Downloads:Read` scope, used only by Gradle to download the SDK. Add it to `~/.gradle/gradle.properties` (outside this repo, never committed): +```properties +MAPBOX_DOWNLOADS_TOKEN=YOUR_SECRET_TOKEN +``` + +#### Configure your public access token +In the project explorer, right-click the `app/src/main/res/values` folder and select **New > Values Resource File**, name it `mapbox_access_token.xml`, and add your public access token: + +`app/src/main/res/values/mapbox_access_token.xml` +```xml + + + YOUR_MAPBOX_ACCESS_TOKEN + +``` + +Find both tokens in the [Mapbox Console](https://console.mapbox.com). diff --git a/android-navigation/app/.gitignore b/android-navigation/app/.gitignore new file mode 100644 index 0000000..42afabf --- /dev/null +++ b/android-navigation/app/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/android-navigation/app/build.gradle.kts b/android-navigation/app/build.gradle.kts new file mode 100644 index 0000000..f9dd717 --- /dev/null +++ b/android-navigation/app/build.gradle.kts @@ -0,0 +1,64 @@ +plugins { + alias(libs.plugins.android.application) + alias(libs.plugins.kotlin.compose) +} + +android { + namespace = "com.example.nav_turn_tutorial" + compileSdk { + version = release(37) { + minorApiLevel = 0 + } + } + + defaultConfig { + applicationId = "com.example.nav_turn_tutorial" + minSdk = 24 + targetSdk = 36 + versionCode = 1 + versionName = "1.0" + + ndk { + abiFilters += listOf("arm64-v8a", "x86_64") + } + + testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" + } + + buildTypes { + release { + isMinifyEnabled = false + proguardFiles( + getDefaultProguardFile("proguard-android-optimize.txt"), + "proguard-rules.pro" + ) + } + } + compileOptions { + sourceCompatibility = JavaVersion.VERSION_11 + targetCompatibility = JavaVersion.VERSION_11 + } + buildFeatures { + compose = true + } +} + +dependencies { + implementation(platform(libs.androidx.compose.bom)) + implementation(libs.androidx.activity.compose) + implementation(libs.androidx.compose.material3) + implementation(libs.androidx.compose.ui) + implementation(libs.androidx.compose.ui.graphics) + implementation(libs.androidx.compose.ui.tooling.preview) + implementation(libs.androidx.core.ktx) + implementation(libs.androidx.lifecycle.runtime.ktx) + implementation(libs.mapbox.navigation.ui.dropin) + implementation(libs.play.services.location) + testImplementation(libs.junit) + androidTestImplementation(platform(libs.androidx.compose.bom)) + androidTestImplementation(libs.androidx.compose.ui.test.junit4) + androidTestImplementation(libs.androidx.espresso.core) + androidTestImplementation(libs.androidx.junit) + debugImplementation(libs.androidx.compose.ui.test.manifest) + debugImplementation(libs.androidx.compose.ui.tooling) +} \ No newline at end of file diff --git a/android-navigation/app/proguard-rules.pro b/android-navigation/app/proguard-rules.pro new file mode 100644 index 0000000..481bb43 --- /dev/null +++ b/android-navigation/app/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile \ No newline at end of file diff --git a/android-navigation/app/src/androidTest/java/com/example/nav_turn_tutorial/ExampleInstrumentedTest.kt b/android-navigation/app/src/androidTest/java/com/example/nav_turn_tutorial/ExampleInstrumentedTest.kt new file mode 100644 index 0000000..90fe28d --- /dev/null +++ b/android-navigation/app/src/androidTest/java/com/example/nav_turn_tutorial/ExampleInstrumentedTest.kt @@ -0,0 +1,24 @@ +package com.example.nav_turn_tutorial + +import androidx.test.platform.app.InstrumentationRegistry +import androidx.test.ext.junit.runners.AndroidJUnit4 + +import org.junit.Test +import org.junit.runner.RunWith + +import org.junit.Assert.* + +/** + * Instrumented test, which will execute on an Android device. + * + * See [testing documentation](http://d.android.com/tools/testing). + */ +@RunWith(AndroidJUnit4::class) +class ExampleInstrumentedTest { + @Test + fun useAppContext() { + // Context of the app under test. + val appContext = InstrumentationRegistry.getInstrumentation().targetContext + assertEquals("com.example.nav_turn_tutorial", appContext.packageName) + } +} \ No newline at end of file diff --git a/android-navigation/app/src/main/AndroidManifest.xml b/android-navigation/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..2ef4f15 --- /dev/null +++ b/android-navigation/app/src/main/AndroidManifest.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/android-navigation/app/src/main/java/com/example/nav_turn_tutorial/Destination.kt b/android-navigation/app/src/main/java/com/example/nav_turn_tutorial/Destination.kt new file mode 100644 index 0000000..e017401 --- /dev/null +++ b/android-navigation/app/src/main/java/com/example/nav_turn_tutorial/Destination.kt @@ -0,0 +1,14 @@ +package com.example.nav_turn_tutorial + +import com.mapbox.geojson.Point + +data class Destination( + val name: String, + val point: Point +) + +val destinations = listOf( + Destination("Statue of Liberty", Point.fromLngLat(-74.0445, 40.6892)), + Destination("Empire State Building", Point.fromLngLat(-73.9857, 40.7484)), + Destination("Central Park", Point.fromLngLat(-73.9654, 40.7829)) +) diff --git a/android-navigation/app/src/main/java/com/example/nav_turn_tutorial/DestinationListScreen.kt b/android-navigation/app/src/main/java/com/example/nav_turn_tutorial/DestinationListScreen.kt new file mode 100644 index 0000000..061596f --- /dev/null +++ b/android-navigation/app/src/main/java/com/example/nav_turn_tutorial/DestinationListScreen.kt @@ -0,0 +1,111 @@ +package com.example.nav_turn_tutorial + +import android.Manifest +import android.content.pm.PackageManager +import android.util.Log +import androidx.activity.compose.rememberLauncherForActivityResult +import androidx.activity.result.contract.ActivityResultContracts +import androidx.compose.foundation.layout.Arrangement +import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.lazy.LazyColumn +import androidx.compose.foundation.lazy.items +import androidx.compose.material3.Button +import androidx.compose.material3.CircularProgressIndicator +import androidx.compose.material3.Text +import androidx.compose.runtime.Composable +import androidx.compose.runtime.getValue +import androidx.compose.runtime.mutableStateOf +import androidx.compose.runtime.remember +import androidx.compose.runtime.rememberCoroutineScope +import androidx.compose.runtime.setValue +import androidx.compose.ui.Modifier +import androidx.compose.ui.platform.LocalContext +import androidx.compose.ui.unit.dp +import androidx.core.content.ContextCompat +import com.google.android.gms.location.LocationServices +import com.google.android.gms.location.Priority +import com.google.android.gms.tasks.CancellationTokenSource +import com.mapbox.geojson.Point +import kotlinx.coroutines.launch + +private const val TAG = "DestinationList" + +@Composable +fun DestinationListScreen( + modifier: Modifier = Modifier, + onNavigationReady: (PreparedNavigation) -> Unit +) { + val context = LocalContext.current + val scope = rememberCoroutineScope() + val navigationLoader = remember { NavigationLoader(context) } + val fusedLocationClient = remember { LocationServices.getFusedLocationProviderClient(context) } + + var hasLocationPermission by remember { + mutableStateOf( + ContextCompat.checkSelfPermission( + context, + Manifest.permission.ACCESS_FINE_LOCATION + ) == PackageManager.PERMISSION_GRANTED + ) + } + var isLoadingRoute by remember { mutableStateOf(false) } + + val permissionLauncher = rememberLauncherForActivityResult( + ActivityResultContracts.RequestMultiplePermissions() + ) { grants -> + hasLocationPermission = grants[Manifest.permission.ACCESS_FINE_LOCATION] == true + } + + fun requestRouteTo(destination: Destination) { + if (!hasLocationPermission) { + permissionLauncher.launch( + arrayOf( + Manifest.permission.ACCESS_FINE_LOCATION, + Manifest.permission.ACCESS_COARSE_LOCATION + ) + ) + return + } + isLoadingRoute = true + fusedLocationClient.getCurrentLocation( + Priority.PRIORITY_HIGH_ACCURACY, + CancellationTokenSource().token + ).addOnSuccessListener { location -> + if (location == null) { + Log.w(TAG, "Current location unavailable") + isLoadingRoute = false + return@addOnSuccessListener + } + val origin = Point.fromLngLat(location.longitude, location.latitude) + Log.d(TAG, "Origin: $origin, Destination: ${destination.point}") + scope.launch { + val prepared = navigationLoader.loadNavigation(origin, destination.point) + Log.d(TAG, "Route distance: ${prepared.distanceMeters} meters") + isLoadingRoute = false + onNavigationReady(prepared) + } + } + } + + Column(modifier = modifier.fillMaxSize().padding(16.dp)) { + Text(text = "Choose a destination") + LazyColumn( + modifier = Modifier.fillMaxSize(), + verticalArrangement = Arrangement.spacedBy(8.dp) + ) { + items(destinations) { destination -> + Button( + onClick = { requestRouteTo(destination) }, + enabled = !isLoadingRoute + ) { + Text(destination.name) + } + } + } + if (isLoadingRoute) { + CircularProgressIndicator(modifier = Modifier.padding(top = 16.dp)) + } + } +} diff --git a/android-navigation/app/src/main/java/com/example/nav_turn_tutorial/MainActivity.kt b/android-navigation/app/src/main/java/com/example/nav_turn_tutorial/MainActivity.kt new file mode 100644 index 0000000..346af33 --- /dev/null +++ b/android-navigation/app/src/main/java/com/example/nav_turn_tutorial/MainActivity.kt @@ -0,0 +1,49 @@ +package com.example.nav_turn_tutorial + +import android.os.Bundle +import androidx.activity.ComponentActivity +import androidx.activity.compose.setContent +import androidx.activity.enableEdgeToEdge +import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.padding +import androidx.compose.material3.Scaffold +import androidx.compose.runtime.Composable +import androidx.compose.runtime.getValue +import androidx.compose.runtime.mutableStateOf +import androidx.compose.runtime.remember +import androidx.compose.runtime.setValue +import androidx.compose.ui.Modifier +import com.example.nav_turn_tutorial.ui.theme.NavturntutorialTheme + +class MainActivity : ComponentActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + enableEdgeToEdge() + setContent { + NavturntutorialTheme { + Scaffold(modifier = Modifier.fillMaxSize()) { innerPadding -> + NavTutorialApp(modifier = Modifier.padding(innerPadding)) + } + } + } + } +} + +@Composable +fun NavTutorialApp(modifier: Modifier = Modifier) { + var preparedNavigation by remember { mutableStateOf(null) } + + val navigation = preparedNavigation + if (navigation == null) { + DestinationListScreen( + modifier = modifier, + onNavigationReady = { preparedNavigation = it } + ) + } else { + NavigationScreen( + routes = navigation.routes, + simulateRoute = true, + onExit = { preparedNavigation = null } + ) + } +} diff --git a/android-navigation/app/src/main/java/com/example/nav_turn_tutorial/NavTutorialApplication.kt b/android-navigation/app/src/main/java/com/example/nav_turn_tutorial/NavTutorialApplication.kt new file mode 100644 index 0000000..8584ce3 --- /dev/null +++ b/android-navigation/app/src/main/java/com/example/nav_turn_tutorial/NavTutorialApplication.kt @@ -0,0 +1,24 @@ +package com.example.nav_turn_tutorial + +import android.app.Application +import com.mapbox.navigation.base.options.NavigationOptions +import com.mapbox.navigation.core.lifecycle.MapboxNavigationApp + +class NavTutorialApplication : Application() { + override fun onCreate() { + super.onCreate() + if (!MapboxNavigationApp.isSetup()) { + val accessTokenResId = resources.getIdentifier( + "mapbox_access_token", + "string", + packageName + ) + MapboxNavigationApp.setup( + NavigationOptions.Builder(this) + .accessToken(getString(accessTokenResId)) + .build() + ) + } + MapboxNavigationApp.attachAllActivities(this) + } +} diff --git a/android-navigation/app/src/main/java/com/example/nav_turn_tutorial/NavigationLoader.kt b/android-navigation/app/src/main/java/com/example/nav_turn_tutorial/NavigationLoader.kt new file mode 100644 index 0000000..52b0e9a --- /dev/null +++ b/android-navigation/app/src/main/java/com/example/nav_turn_tutorial/NavigationLoader.kt @@ -0,0 +1,66 @@ +package com.example.nav_turn_tutorial + +import android.content.Context +import com.mapbox.api.directions.v5.models.RouteOptions +import com.mapbox.geojson.Point +import com.mapbox.navigation.base.extensions.applyDefaultNavigationOptions +import com.mapbox.navigation.base.extensions.applyLanguageAndVoiceUnitOptions +import com.mapbox.navigation.base.route.NavigationRoute +import com.mapbox.navigation.base.route.NavigationRouterCallback +import com.mapbox.navigation.base.route.RouterFailure +import com.mapbox.navigation.base.route.RouterOrigin +import com.mapbox.navigation.core.lifecycle.MapboxNavigationApp +import kotlin.coroutines.resume +import kotlin.coroutines.resumeWithException +import kotlinx.coroutines.suspendCancellableCoroutine + +data class PreparedNavigation( + val routes: List +) { + val distanceMeters: Double + get() = routes.first().directionsRoute.distance() +} + +class NavigationLoader(private val context: Context) { + + suspend fun loadNavigation(origin: Point, destination: Point): PreparedNavigation = + suspendCancellableCoroutine { continuation -> + val mapboxNavigation = MapboxNavigationApp.current() + ?: error("MapboxNavigationApp is not set up") + + val routeOptions = RouteOptions.builder() + .applyDefaultNavigationOptions() + .applyLanguageAndVoiceUnitOptions(context) + .coordinatesList(listOf(origin, destination)) + .alternatives(false) + .build() + + mapboxNavigation.requestRoutes( + routeOptions, + object : NavigationRouterCallback { + override fun onRoutesReady( + routes: List, + routerOrigin: RouterOrigin + ) { + continuation.resume(PreparedNavigation(routes)) + } + + override fun onFailure( + reasons: List, + routeOptions: RouteOptions + ) { + continuation.resumeWithException( + IllegalStateException("Route request failed: $reasons") + ) + } + + override fun onCanceled( + routeOptions: RouteOptions, + routerOrigin: RouterOrigin + ) { + continuation.cancel() + } + } + ) + } +} diff --git a/android-navigation/app/src/main/java/com/example/nav_turn_tutorial/NavigationScreen.kt b/android-navigation/app/src/main/java/com/example/nav_turn_tutorial/NavigationScreen.kt new file mode 100644 index 0000000..c23ac62 --- /dev/null +++ b/android-navigation/app/src/main/java/com/example/nav_turn_tutorial/NavigationScreen.kt @@ -0,0 +1,47 @@ +package com.example.nav_turn_tutorial + +import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.runtime.Composable +import androidx.compose.ui.Modifier +import androidx.compose.ui.viewinterop.AndroidView +import com.mapbox.navigation.base.route.NavigationRoute +import com.mapbox.navigation.dropin.NavigationView +import com.mapbox.navigation.dropin.navigationview.NavigationViewListener + +@Composable +fun NavigationScreen( + routes: List, + simulateRoute: Boolean, + onExit: () -> Unit +) { + AndroidView( + modifier = Modifier.fillMaxSize(), + factory = { context -> + val accessTokenResId = context.resources.getIdentifier( + "mapbox_access_token", + "string", + context.packageName + ) + val accessToken = context.getString(accessTokenResId) + var hasStartedActiveNavigation = false + NavigationView(context, null, accessToken).apply { + api.routeReplayEnabled(simulateRoute) + addListener(object : NavigationViewListener() { + override fun onActiveNavigation() { + hasStartedActiveNavigation = true + } + + override fun onFreeDrive() { + if (hasStartedActiveNavigation) { + onExit() + } + } + }) + api.startActiveGuidance(routes) + } + }, + update = { navigationView -> + navigationView.api.routeReplayEnabled(simulateRoute) + } + ) +} diff --git a/android-navigation/app/src/main/java/com/example/nav_turn_tutorial/ui/theme/Color.kt b/android-navigation/app/src/main/java/com/example/nav_turn_tutorial/ui/theme/Color.kt new file mode 100644 index 0000000..57ea70f --- /dev/null +++ b/android-navigation/app/src/main/java/com/example/nav_turn_tutorial/ui/theme/Color.kt @@ -0,0 +1,11 @@ +package com.example.nav_turn_tutorial.ui.theme + +import androidx.compose.ui.graphics.Color + +val Purple80 = Color(0xFFD0BCFF) +val PurpleGrey80 = Color(0xFFCCC2DC) +val Pink80 = Color(0xFFEFB8C8) + +val Purple40 = Color(0xFF6650a4) +val PurpleGrey40 = Color(0xFF625b71) +val Pink40 = Color(0xFF7D5260) \ No newline at end of file diff --git a/android-navigation/app/src/main/java/com/example/nav_turn_tutorial/ui/theme/Theme.kt b/android-navigation/app/src/main/java/com/example/nav_turn_tutorial/ui/theme/Theme.kt new file mode 100644 index 0000000..46398e1 --- /dev/null +++ b/android-navigation/app/src/main/java/com/example/nav_turn_tutorial/ui/theme/Theme.kt @@ -0,0 +1,58 @@ +package com.example.nav_turn_tutorial.ui.theme + +import android.app.Activity +import android.os.Build +import androidx.compose.foundation.isSystemInDarkTheme +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.darkColorScheme +import androidx.compose.material3.dynamicDarkColorScheme +import androidx.compose.material3.dynamicLightColorScheme +import androidx.compose.material3.lightColorScheme +import androidx.compose.runtime.Composable +import androidx.compose.ui.platform.LocalContext + +private val DarkColorScheme = darkColorScheme( + primary = Purple80, + secondary = PurpleGrey80, + tertiary = Pink80 +) + +private val LightColorScheme = lightColorScheme( + primary = Purple40, + secondary = PurpleGrey40, + tertiary = Pink40 + + /* Other default colors to override + background = Color(0xFFFFFBFE), + surface = Color(0xFFFFFBFE), + onPrimary = Color.White, + onSecondary = Color.White, + onTertiary = Color.White, + onBackground = Color(0xFF1C1B1F), + onSurface = Color(0xFF1C1B1F), + */ +) + +@Composable +fun NavturntutorialTheme( + darkTheme: Boolean = isSystemInDarkTheme(), + // Dynamic color is available on Android 12+ + dynamicColor: Boolean = true, + content: @Composable () -> Unit +) { + val colorScheme = when { + dynamicColor && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S -> { + val context = LocalContext.current + if (darkTheme) dynamicDarkColorScheme(context) else dynamicLightColorScheme(context) + } + + darkTheme -> DarkColorScheme + else -> LightColorScheme + } + + MaterialTheme( + colorScheme = colorScheme, + typography = Typography, + content = content + ) +} \ No newline at end of file diff --git a/android-navigation/app/src/main/java/com/example/nav_turn_tutorial/ui/theme/Type.kt b/android-navigation/app/src/main/java/com/example/nav_turn_tutorial/ui/theme/Type.kt new file mode 100644 index 0000000..781298b --- /dev/null +++ b/android-navigation/app/src/main/java/com/example/nav_turn_tutorial/ui/theme/Type.kt @@ -0,0 +1,34 @@ +package com.example.nav_turn_tutorial.ui.theme + +import androidx.compose.material3.Typography +import androidx.compose.ui.text.TextStyle +import androidx.compose.ui.text.font.FontFamily +import androidx.compose.ui.text.font.FontWeight +import androidx.compose.ui.unit.sp + +// Set of Material typography styles to start with +val Typography = Typography( + bodyLarge = TextStyle( + fontFamily = FontFamily.Default, + fontWeight = FontWeight.Normal, + fontSize = 16.sp, + lineHeight = 24.sp, + letterSpacing = 0.5.sp + ) + /* Other default text styles to override + titleLarge = TextStyle( + fontFamily = FontFamily.Default, + fontWeight = FontWeight.Normal, + fontSize = 22.sp, + lineHeight = 28.sp, + letterSpacing = 0.sp + ), + labelSmall = TextStyle( + fontFamily = FontFamily.Default, + fontWeight = FontWeight.Medium, + fontSize = 11.sp, + lineHeight = 16.sp, + letterSpacing = 0.5.sp + ) + */ +) \ No newline at end of file diff --git a/android-navigation/app/src/main/res/drawable/ic_launcher_background.xml b/android-navigation/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 0000000..07d5da9 --- /dev/null +++ b/android-navigation/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/android-navigation/app/src/main/res/drawable/ic_launcher_foreground.xml b/android-navigation/app/src/main/res/drawable/ic_launcher_foreground.xml new file mode 100644 index 0000000..2b068d1 --- /dev/null +++ b/android-navigation/app/src/main/res/drawable/ic_launcher_foreground.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/android-navigation/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/android-navigation/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 0000000..6f3b755 --- /dev/null +++ b/android-navigation/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/android-navigation/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/android-navigation/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 0000000..6f3b755 --- /dev/null +++ b/android-navigation/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/android-navigation/app/src/main/res/mipmap-hdpi/ic_launcher.webp b/android-navigation/app/src/main/res/mipmap-hdpi/ic_launcher.webp new file mode 100644 index 0000000..c209e78 Binary files /dev/null and b/android-navigation/app/src/main/res/mipmap-hdpi/ic_launcher.webp differ diff --git a/android-navigation/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp b/android-navigation/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp new file mode 100644 index 0000000..b2dfe3d Binary files /dev/null and b/android-navigation/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp differ diff --git a/android-navigation/app/src/main/res/mipmap-mdpi/ic_launcher.webp b/android-navigation/app/src/main/res/mipmap-mdpi/ic_launcher.webp new file mode 100644 index 0000000..4f0f1d6 Binary files /dev/null and b/android-navigation/app/src/main/res/mipmap-mdpi/ic_launcher.webp differ diff --git a/android-navigation/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp b/android-navigation/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp new file mode 100644 index 0000000..62b611d Binary files /dev/null and b/android-navigation/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp differ diff --git a/android-navigation/app/src/main/res/mipmap-xhdpi/ic_launcher.webp b/android-navigation/app/src/main/res/mipmap-xhdpi/ic_launcher.webp new file mode 100644 index 0000000..948a307 Binary files /dev/null and b/android-navigation/app/src/main/res/mipmap-xhdpi/ic_launcher.webp differ diff --git a/android-navigation/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp b/android-navigation/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp new file mode 100644 index 0000000..1b9a695 Binary files /dev/null and b/android-navigation/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp differ diff --git a/android-navigation/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp b/android-navigation/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp new file mode 100644 index 0000000..28d4b77 Binary files /dev/null and b/android-navigation/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp differ diff --git a/android-navigation/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp b/android-navigation/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp new file mode 100644 index 0000000..9287f50 Binary files /dev/null and b/android-navigation/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp differ diff --git a/android-navigation/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp b/android-navigation/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp new file mode 100644 index 0000000..aa7d642 Binary files /dev/null and b/android-navigation/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp differ diff --git a/android-navigation/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp b/android-navigation/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp new file mode 100644 index 0000000..9126ae3 Binary files /dev/null and b/android-navigation/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp differ diff --git a/android-navigation/app/src/main/res/values/colors.xml b/android-navigation/app/src/main/res/values/colors.xml new file mode 100644 index 0000000..f8c6127 --- /dev/null +++ b/android-navigation/app/src/main/res/values/colors.xml @@ -0,0 +1,10 @@ + + + #FFBB86FC + #FF6200EE + #FF3700B3 + #FF03DAC5 + #FF018786 + #FF000000 + #FFFFFFFF + \ No newline at end of file diff --git a/android-navigation/app/src/main/res/values/strings.xml b/android-navigation/app/src/main/res/values/strings.xml new file mode 100644 index 0000000..e4d77dc --- /dev/null +++ b/android-navigation/app/src/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + Nav-turn-tutorial + \ No newline at end of file diff --git a/android-navigation/app/src/main/res/values/themes.xml b/android-navigation/app/src/main/res/values/themes.xml new file mode 100644 index 0000000..7b6eb37 --- /dev/null +++ b/android-navigation/app/src/main/res/values/themes.xml @@ -0,0 +1,5 @@ + + + +