43 lines
1.2 KiB
Java
43 lines
1.2 KiB
Java
package androidx.appcompat.widget;
|
|
|
|
import android.content.Context;
|
|
import android.graphics.Bitmap;
|
|
import android.util.AttributeSet;
|
|
import android.view.View;
|
|
import android.widget.RatingBar;
|
|
import o.Kvu;
|
|
import o.SYO;
|
|
import o.nKv;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class AppCompatRatingBar extends RatingBar {
|
|
private final Kvu e;
|
|
|
|
public AppCompatRatingBar(Context context) {
|
|
this(context, null);
|
|
}
|
|
|
|
public AppCompatRatingBar(Context context, AttributeSet attributeSet) {
|
|
this(context, attributeSet, SYO.IeS.ratingBarStyle);
|
|
}
|
|
|
|
public AppCompatRatingBar(Context context, AttributeSet attributeSet, int i) {
|
|
super(context, attributeSet, i);
|
|
nKv.b(getContext());
|
|
Kvu kvu = new Kvu(this);
|
|
this.e = kvu;
|
|
kvu.gK_(attributeSet, i);
|
|
}
|
|
|
|
@Override // android.widget.RatingBar, android.widget.AbsSeekBar, android.widget.ProgressBar, android.view.View
|
|
protected void onMeasure(int i, int i2) {
|
|
synchronized (this) {
|
|
super.onMeasure(i, i2);
|
|
Bitmap gz_ = this.e.gz_();
|
|
if (gz_ != null) {
|
|
setMeasuredDimension(View.resolveSizeAndState(gz_.getWidth() * getNumStars(), i, 0), getMeasuredHeight());
|
|
}
|
|
}
|
|
}
|
|
}
|