Search in sources :

Example 1 with TurnLaneAdapter

use of com.mapbox.services.android.navigation.ui.v5.instruction.turnlane.TurnLaneAdapter in project mapbox-navigation-android by mapbox.

the class InstructionView method initTurnLaneRecyclerView.

/**
 * Sets up the {@link RecyclerView} that is used to display the turn lanes.
 */
private void initTurnLaneRecyclerView() {
    turnLaneAdapter = new TurnLaneAdapter();
    rvTurnLanes.setAdapter(turnLaneAdapter);
    rvTurnLanes.setHasFixedSize(true);
    rvTurnLanes.setLayoutManager(new LinearLayoutManager(getContext(), LinearLayoutManager.HORIZONTAL, false));
}
Also used : TurnLaneAdapter(com.mapbox.services.android.navigation.ui.v5.instruction.turnlane.TurnLaneAdapter) LinearLayoutManager(android.support.v7.widget.LinearLayoutManager)

Aggregations

LinearLayoutManager (android.support.v7.widget.LinearLayoutManager)1 TurnLaneAdapter (com.mapbox.services.android.navigation.ui.v5.instruction.turnlane.TurnLaneAdapter)1