/**
   * Create a new {@code IndeterminateHorizontalProgressDrawable}.
   *
   * @param context the {@code Context} for retrieving style information.
   */
  public IndeterminateHorizontalProgressDrawable(Context context, int color) {
    super(context, color);

    float density = context.getResources().getDisplayMetrics().density;
    mProgressIntrinsicHeight = Math.round(PROGRESS_INTRINSIC_HEIGHT_DP * density);
    mPaddedIntrinsicHeight = Math.round(PADDED_INTRINSIC_HEIGHT_DP * density);

    mTrackAlpha = ThemeUtils.getFloatFromAttrRes(android.R.attr.disabledAlpha, context);

    mAnimators =
        new Animator[] {
          Animators.createIndeterminateHorizontalRect1(mRect1TransformX),
          Animators.createIndeterminateHorizontalRect2(mRect2TransformX)
        };
  }
 public HorizontalProgressDrawable(Context paramContext) {
   super(
       new Drawable[] {
         new SingleHorizontalProgressDrawable(paramContext),
         new SingleHorizontalProgressDrawable(paramContext),
         new SingleHorizontalProgressDrawable(paramContext)
       });
   setId(0, 16908288);
   this.mTrackDrawable = ((SingleHorizontalProgressDrawable) getDrawable(0));
   setId(1, 16908303);
   this.mSecondaryProgressDrawable = ((SingleHorizontalProgressDrawable) getDrawable(1));
   this.mSecondaryAlpha =
       Math.round(255.0F * ThemeUtils.getFloatFromAttrRes(16842803, paramContext));
   this.mSecondaryProgressDrawable.setAlpha(this.mSecondaryAlpha);
   this.mSecondaryProgressDrawable.setShowTrack(false);
   setId(2, 16908301);
   this.mProgressDrawable = ((SingleHorizontalProgressDrawable) getDrawable(2));
   this.mProgressDrawable.setShowTrack(false);
 }