what-the-bank/sources/com/scb/phone/view/custom/common/CustomViewProgressAnimation...

73 lines
2.3 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.scb.phone.view.custom.common;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.ProgressBar;
import butterknife.BindView;
import butterknife.ButterKnife;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.scb.phone.R;
import o.C14957gcv;
/* loaded from: classes5.dex */
public final class CustomViewProgressAnimation extends FrameLayout {
private View b;
private AnimatorSet c;
@BindView
public ProgressBar halfCircleProgressBar;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public CustomViewProgressAnimation(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
C14957gcv.e(context, "");
C14957gcv.e(attributeSet, "");
Object systemService = context.getSystemService("layout_inflater");
C14957gcv.d(systemService, "");
View inflate = ((LayoutInflater) systemService).inflate(R.layout.2131559390, (ViewGroup) this, true);
C14957gcv.c(inflate, "");
this.b = inflate;
this.c = new AnimatorSet();
ButterKnife.c(this);
this.c.cancel();
AnimatorSet animatorSet = new AnimatorSet();
ProgressBar progressBar = this.halfCircleProgressBar;
if (progressBar == null) {
C14957gcv.a("");
progressBar = null;
}
ObjectAnimator ofFloat = ObjectAnimator.ofFloat(progressBar, "rotation", 360.0f, BitmapDescriptorFactory.HUE_RED);
ofFloat.setDuration(700L);
ofFloat.setRepeatCount(-1);
ofFloat.setRepeatMode(-1);
animatorSet.playTogether(ofFloat);
this.c = animatorSet;
animatorSet.start();
}
/* loaded from: classes5.dex */
public static final class IeS {
private IeS() {
}
public /* synthetic */ IeS(byte b) {
this();
}
}
public final void setHalfCircleProgressBar(ProgressBar progressBar) {
C14957gcv.e(progressBar, "");
this.halfCircleProgressBar = progressBar;
}
static {
new IeS((byte) 0);
}
}