Exemple #1
0
  private void setCurrentPagerItemStyling(int page) {
    if (page == instructions.size() - 1) {
      adapter.setBackgroundColorComplete(pager.findViewWithTag("Instruction_" + page));
    } else {
      adapter.setBackgroundColorActive(pager.findViewWithTag("Instruction_" + page));
    }

    adapter.setTurnIcon(
        pager.findViewWithTag("Instruction_" + page),
        DisplayHelper.getRouteDrawable(
            pager.getContext(),
            instructions.get(page).getTurnInstruction(),
            DisplayHelper.IconStyle.STANDARD));
    resetPagerItemStyling(page);
  }