content: package com.google.android.material.tabs;
  
  import android.graphics.RectF;
  import android.graphics.drawable.Drawable;
  import android.view.View;
  import com.google.android.material.animation.AnimationUtils;
  
  class FadeTabIndicatorInterpolator extends TabIndicatorInterpolator {
      private static final float FADE_THRESHOLD = 0.5f;
  
      FadeTabIndicatorInterpolator() {
      }
  
      /* access modifiers changed from: package-private */
      public void updateIndicatorForOffset(TabLayout tabLayout, View startTitle, View endTitle, float offset, Drawable indicator) {
          RectF calculateIndicatorWidthForTab = calculateIndicatorWidthForTab(tabLayout, offset < 0.5f ? startTitle : endTitle);
          float lerp = offset < 0.5f ? AnimationUtils.lerp(1.0f, 0.0f, 0.0f, 0.5f, offset) : AnimationUtils.lerp(0.0f, 1.0f, 0.5f, 1.0f, offset);
          indicator.setBounds((int) calculateIndicatorWidthForTab.left, indicator.getBounds().top, (int) calculateIndicatorWidthForTab.right, indicator.getBounds().bottom);
          indicator.setAlpha((int) (255.0f * lerp));
      }
  }
  