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));
}
Aggregations