Reformat Code
This commit is contained in:
1 parent
01daf4a63e
commit
12f857a936
73 files changed
+2712
-2844
No files matched your search
@@ -18,10 +18,11 @@ package com.hippo.glview.widget;
|
||||
|
||||
import android.graphics.Color;
|
||||
import android.graphics.Path;
|
||||
import androidx.core.view.animation.PathInterpolatorCompat;
|
||||
import android.view.animation.Interpolator;
|
||||
import android.view.animation.LinearInterpolator;
|
||||
|
||||
import androidx.core.view.animation.PathInterpolatorCompat;
|
||||
|
||||
import com.hippo.glview.anim.Animation;
|
||||
import com.hippo.glview.anim.FloatAnimation;
|
||||
import com.hippo.glview.glrenderer.GLCanvas;
|
||||
@@ -148,7 +149,7 @@ public class GLProgressView extends GLView {
|
||||
|
||||
@Override
|
||||
protected void onLayout(boolean changeSize, int left, int top, int right,
|
||||
int bottom) {
|
||||
int bottom) {
|
||||
super.onLayout(changeSize, left, top, right, bottom);
|
||||
|
||||
int width = right - left;
|
||||
@@ -170,6 +171,10 @@ public class GLProgressView extends GLView {
|
||||
invalidate();
|
||||
}
|
||||
|
||||
public boolean isIndeterminate() {
|
||||
return mIndeterminate;
|
||||
}
|
||||
|
||||
public void setIndeterminate(boolean indeterminate) {
|
||||
if (mIndeterminate != indeterminate) {
|
||||
mIndeterminate = indeterminate;
|
||||
@@ -182,10 +187,6 @@ public class GLProgressView extends GLView {
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isIndeterminate() {
|
||||
return mIndeterminate;
|
||||
}
|
||||
|
||||
public void setProgress(float progress) {
|
||||
if (!mIndeterminate) {
|
||||
mTrimStart = 0.0f;
|
||||
|
||||
Reference in new issue
Block a user