libandroid-navigation-ui/src/main/java/com/mapbox/services/android/navigation/ui/v5/instruction/InstructionView.java
private void initInstructionAutoSize() {
    TextViewCompat.setAutoSizeTextTypeUniformWithConfiguration(upcomingPrimaryText,
      26, 30, 1, TypedValue.COMPLEX_UNIT_SP);
    TextViewCompat.setAutoSizeTextTypeUniformWithConfiguration(upcomingSecondaryText,
      20, 26, 1, TypedValue.COMPLEX_UNIT_SP);
    TextViewCompat.setAutoSizeTextTypeUniformWithConfiguration(upcomingDistanceText,
      16, 20, 1, TypedValue.COMPLEX_UNIT_SP);
  }
/**
   * Called after we bind the views, this will allow the step instruction {@link TextView}
   * to automatically re-size based on the length of the text.
   */
Called after we bind the views, this will allow the step instruction  TextView
to automatically re-size based on the length of the text.
Called after we bind the views this will allow the step instruction TextView to automatically re - size based on the length of the text .
private void initInstructionAutoSize() {
    TextViewCompat.setAutoSizeTextTypeUniformWithConfiguration(upcomingPrimaryText,
      26, 30, 1, TypedValue.COMPLEX_UNIT_SP);
    TextViewCompat.setAutoSizeTextTypeUniformWithConfiguration(upcomingSecondaryText,
      20, 26, 1, TypedValue.COMPLEX_UNIT_SP);
    TextViewCompat.setAutoSizeTextTypeUniformWithConfiguration(upcomingDistanceText,
      16, 20, 1, TypedValue.COMPLEX_UNIT_SP);
  }
private void initInstructionAutoSize ( ) { TextViewCompat . setAutoSizeTextTypeUniformWithConfiguration ( upcomingPrimaryText , 26 , 30 , 1 , TypedValue . COMPLEX_UNIT_SP ) ; TextViewCompat . setAutoSizeTextTypeUniformWithConfiguration ( upcomingSecondaryText , 20 , 26 , 1 , TypedValue . COMPLEX_UNIT_SP ) ; TextViewCompat . setAutoSizeTextTypeUniformWithConfiguration ( upcomingDistanceText , 16 , 20 , 1 , TypedValue . COMPLEX_UNIT_SP ) ; }
Called after we bind the views, this will allow the step instruction {@link TextView}
 to automatically re-size based on the length of the text.
Called after we bind the views this will allow the step instruction { @link TextView } to automatically re - size based on the length of the text .