Skip to content

UiKit Simple Lanes View

Tomáš Valenta edited this page Sep 2, 2019 · 2 revisions

Description

A SimpleLanesView displays actual lanes on the road in front of the vehicle as arrows and highlights those which follows the direction of the current route.

Note: This view uses the custom theme attribute, which needs to be defined. See: Global theme attributes section below.

SimpleLanesView

Usage

<com.sygic.maps.uikit.views.navigation.lanes.SimpleLanesView
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:lanes="@{lanesViewModel.lanes}" />

Style

<style name="AppTheme" parent="Theme.AppCompat.DayNight">
    <item name="lanesViewStyle">@style/CustomLanesViewStyle</item>
</style>

<style name="CustomLanesViewStyle">
    <item name="android:background">@drawable/bg_signpost_rounded</item>
    <item name="android:layout_margin">16dp</item>
</style>

Global theme attributes:

<!-- Note: this color needs to be defined in your theme or you can inherit from our predefined theme "Theme.Sygic..." instead.-->
<item name="navigationTextColorTertiary">#FFF</item>