Initial commit
This commit is contained in:
6
sources/com/ubt/jimu/user/view/picker/LoopListener.java
Normal file
6
sources/com/ubt/jimu/user/view/picker/LoopListener.java
Normal file
@@ -0,0 +1,6 @@
|
||||
package com.ubt.jimu.user.view.picker;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public interface LoopListener {
|
||||
void a(int i);
|
||||
}
|
16
sources/com/ubt/jimu/user/view/picker/LoopRunnable.java
Normal file
16
sources/com/ubt/jimu/user/view/picker/LoopRunnable.java
Normal file
@@ -0,0 +1,16 @@
|
||||
package com.ubt.jimu.user.view.picker;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
final class LoopRunnable implements Runnable {
|
||||
final LoopView a;
|
||||
|
||||
LoopRunnable(LoopView loopView) {
|
||||
this.a = loopView;
|
||||
}
|
||||
|
||||
@Override // java.lang.Runnable
|
||||
public final void run() {
|
||||
LoopView loopView = this.a;
|
||||
loopView.d.a(LoopView.b(loopView));
|
||||
}
|
||||
}
|
64
sources/com/ubt/jimu/user/view/picker/LoopTimerTask.java
Normal file
64
sources/com/ubt/jimu/user/view/picker/LoopTimerTask.java
Normal file
@@ -0,0 +1,64 @@
|
||||
package com.ubt.jimu.user.view.picker;
|
||||
|
||||
import java.util.Timer;
|
||||
import java.util.TimerTask;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
final class LoopTimerTask extends TimerTask {
|
||||
float a = 2.147484E9f;
|
||||
final float b;
|
||||
final Timer c;
|
||||
final LoopView d;
|
||||
|
||||
LoopTimerTask(LoopView loopView, float f, Timer timer) {
|
||||
this.d = loopView;
|
||||
this.b = f;
|
||||
this.c = timer;
|
||||
}
|
||||
|
||||
@Override // java.util.TimerTask, java.lang.Runnable
|
||||
public final void run() {
|
||||
if (this.a == 2.147484E9f) {
|
||||
if (Math.abs(this.b) <= 2000.0f) {
|
||||
this.a = this.b;
|
||||
} else if (this.b > 0.0f) {
|
||||
this.a = 2000.0f;
|
||||
} else {
|
||||
this.a = -2000.0f;
|
||||
}
|
||||
}
|
||||
if (Math.abs(this.a) >= 0.0f && Math.abs(this.a) <= 20.0f) {
|
||||
this.c.cancel();
|
||||
this.d.c.sendEmptyMessage(2000);
|
||||
return;
|
||||
}
|
||||
int i = (int) ((this.a * 10.0f) / 1000.0f);
|
||||
LoopView loopView = this.d;
|
||||
loopView.b -= i;
|
||||
if (!loopView.x) {
|
||||
int i2 = loopView.b;
|
||||
int i3 = loopView.B;
|
||||
float f = loopView.v;
|
||||
int i4 = loopView.q;
|
||||
if (i2 <= ((int) ((-i3) * i4 * f))) {
|
||||
this.a = 40.0f;
|
||||
loopView.b = (int) ((-i3) * f * i4);
|
||||
} else {
|
||||
int size = loopView.n.size() - 1;
|
||||
LoopView loopView2 = this.d;
|
||||
if (i2 >= ((int) ((size - loopView2.B) * loopView2.v * loopView2.q))) {
|
||||
int size2 = loopView2.n.size() - 1;
|
||||
loopView2.b = (int) ((size2 - r3.B) * this.d.v * r3.q);
|
||||
this.a = -40.0f;
|
||||
}
|
||||
}
|
||||
}
|
||||
float f2 = this.a;
|
||||
if (f2 < 0.0f) {
|
||||
this.a = f2 + 20.0f;
|
||||
} else {
|
||||
this.a = f2 - 20.0f;
|
||||
}
|
||||
this.d.c.sendEmptyMessage(1000);
|
||||
}
|
||||
}
|
418
sources/com/ubt/jimu/user/view/picker/LoopView.java
Normal file
418
sources/com/ubt/jimu/user/view/picker/LoopView.java
Normal file
@@ -0,0 +1,418 @@
|
||||
package com.ubt.jimu.user.view.picker;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.Paint;
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.Typeface;
|
||||
import android.os.Build;
|
||||
import android.os.Handler;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.GestureDetector;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
import com.ubt.jimu.R;
|
||||
import java.util.List;
|
||||
import java.util.Timer;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
public class LoopView extends View {
|
||||
int A;
|
||||
int B;
|
||||
int C;
|
||||
int D;
|
||||
int E;
|
||||
int F;
|
||||
int G;
|
||||
int H;
|
||||
float I;
|
||||
float J;
|
||||
float K;
|
||||
private float L;
|
||||
private float M;
|
||||
Timer a;
|
||||
int b;
|
||||
Handler c;
|
||||
LoopListener d;
|
||||
private GestureDetector e;
|
||||
private int f;
|
||||
private GestureDetector.SimpleOnGestureListener g;
|
||||
Context h;
|
||||
Paint i;
|
||||
Paint j;
|
||||
Paint k;
|
||||
Paint l;
|
||||
Paint m;
|
||||
List n;
|
||||
int o;
|
||||
int p;
|
||||
int q;
|
||||
int r;
|
||||
int s;
|
||||
int t;
|
||||
int u;
|
||||
float v;
|
||||
boolean x;
|
||||
int y;
|
||||
int z;
|
||||
|
||||
public LoopView(Context context) {
|
||||
super(context);
|
||||
a(context);
|
||||
}
|
||||
|
||||
private void a(Context context) {
|
||||
this.o = 0;
|
||||
this.r = 2002349952;
|
||||
this.s = 861499264;
|
||||
this.t = -10915968;
|
||||
this.u = -7166026;
|
||||
this.v = 2.0f;
|
||||
this.x = true;
|
||||
this.B = -1;
|
||||
this.C = 7;
|
||||
this.I = 0.0f;
|
||||
this.J = 0.0f;
|
||||
this.K = 0.0f;
|
||||
this.b = 0;
|
||||
this.g = new LoopViewGestureListener(this);
|
||||
this.c = new MessageHandler(this);
|
||||
this.h = context;
|
||||
setTextSize(17.0f);
|
||||
}
|
||||
|
||||
static int b(LoopView loopView) {
|
||||
return loopView.getCurrentItem();
|
||||
}
|
||||
|
||||
private void c() {
|
||||
if (this.n == null) {
|
||||
return;
|
||||
}
|
||||
this.i = new Paint();
|
||||
this.i.setColor(this.r);
|
||||
this.i.setAntiAlias(true);
|
||||
this.i.setTypeface(Typeface.MONOSPACE);
|
||||
this.i.setTextSize(this.o);
|
||||
this.j = new Paint();
|
||||
this.j.setColor(this.t);
|
||||
this.j.setAntiAlias(true);
|
||||
this.j.setTextScaleX(1.05f);
|
||||
this.j.setTypeface(Typeface.MONOSPACE);
|
||||
this.j.setFakeBoldText(true);
|
||||
this.j.setTextSize(this.o);
|
||||
this.k = new Paint();
|
||||
this.k.setColor(this.u);
|
||||
this.k.setAntiAlias(true);
|
||||
this.k.setTypeface(Typeface.MONOSPACE);
|
||||
this.k.setTextSize(this.o);
|
||||
this.l = new Paint();
|
||||
this.l.setColor(this.s);
|
||||
this.l.setAntiAlias(true);
|
||||
this.l.setTypeface(Typeface.MONOSPACE);
|
||||
this.l.setTextSize(this.o);
|
||||
this.m = new Paint();
|
||||
this.m.setColor(this.t);
|
||||
this.m.setAntiAlias(true);
|
||||
this.m.setTextScaleX(1.05f);
|
||||
this.m.setTypeface(Typeface.MONOSPACE);
|
||||
this.m.setTextSize(this.o);
|
||||
if (Build.VERSION.SDK_INT >= 11) {
|
||||
setLayerType(1, null);
|
||||
}
|
||||
this.e = new GestureDetector(this.h, this.g);
|
||||
this.e.setIsLongpressEnabled(false);
|
||||
d();
|
||||
int i = this.q;
|
||||
float f = this.v;
|
||||
this.E = (int) (i * f * (this.C - 1));
|
||||
int i2 = this.E;
|
||||
this.D = (int) ((i2 * 2) / 3.141592653589793d);
|
||||
this.F = (int) (i2 / 3.141592653589793d);
|
||||
this.G = this.p + this.o;
|
||||
int i3 = this.D;
|
||||
this.y = (int) ((i3 - (i * f)) / 2.0f);
|
||||
this.z = (int) ((i3 + (f * i)) / 2.0f);
|
||||
if (this.B == -1) {
|
||||
if (this.x) {
|
||||
this.B = (this.n.size() + 1) / 2;
|
||||
} else {
|
||||
this.B = 0;
|
||||
}
|
||||
}
|
||||
this.A = this.B;
|
||||
}
|
||||
|
||||
private void d() {
|
||||
Rect rect = new Rect();
|
||||
String str = (String) this.n.get(0);
|
||||
this.j.getTextBounds(str, 0, str.length(), rect);
|
||||
int width = (int) (rect.width() * 2.8f);
|
||||
if (width > this.p) {
|
||||
this.p = width;
|
||||
}
|
||||
int height = rect.height();
|
||||
if (height > this.q) {
|
||||
this.q = height;
|
||||
}
|
||||
}
|
||||
|
||||
private void e() {
|
||||
int i = (int) (this.b % (this.v * this.q));
|
||||
Timer timer = new Timer();
|
||||
this.a = timer;
|
||||
timer.schedule(new MTimer(this, i, timer), 0L, 10L);
|
||||
}
|
||||
|
||||
public final int getCurrentItem() {
|
||||
int i = this.A;
|
||||
if (i <= 0) {
|
||||
return 0;
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
||||
public final String getCurrentItemValue() {
|
||||
return String.valueOf(this.n.get(getCurrentItem())).trim();
|
||||
}
|
||||
|
||||
public final int getItemCount() {
|
||||
List list = this.n;
|
||||
if (list == null) {
|
||||
return 0;
|
||||
}
|
||||
return list.size();
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
protected void onDraw(Canvas canvas) {
|
||||
Canvas canvas2 = canvas;
|
||||
List list = this.n;
|
||||
if (list == null) {
|
||||
super.onDraw(canvas);
|
||||
return;
|
||||
}
|
||||
String[] strArr = new String[this.C];
|
||||
this.H = (int) (this.b / (this.v * this.q));
|
||||
this.A = this.B + (this.H % list.size());
|
||||
if (this.x) {
|
||||
if (this.A < 0) {
|
||||
this.A = this.n.size() + this.A;
|
||||
}
|
||||
if (this.A > this.n.size() - 1) {
|
||||
this.A -= this.n.size();
|
||||
}
|
||||
} else {
|
||||
if (this.A < 0) {
|
||||
this.A = 0;
|
||||
}
|
||||
if (this.A > this.n.size() - 1) {
|
||||
this.A = this.n.size() - 1;
|
||||
}
|
||||
}
|
||||
int i = (int) (this.b % (this.v * this.q));
|
||||
for (int i2 = 0; i2 < this.C; i2++) {
|
||||
int i3 = this.A - (3 - i2);
|
||||
if (this.x) {
|
||||
if (i3 < 0) {
|
||||
i3 += this.n.size();
|
||||
}
|
||||
if (i3 > this.n.size() - 1) {
|
||||
i3 -= this.n.size();
|
||||
}
|
||||
strArr[i2] = (String) this.n.get(i3);
|
||||
} else if (i3 < 0) {
|
||||
strArr[i2] = "";
|
||||
} else if (i3 > this.n.size() - 1) {
|
||||
strArr[i2] = "";
|
||||
} else {
|
||||
strArr[i2] = (String) this.n.get(i3);
|
||||
}
|
||||
}
|
||||
int i4 = this.G;
|
||||
int i5 = (i4 - this.p) / 2;
|
||||
int i6 = this.y;
|
||||
canvas.drawLine(0.0f, i6, i4, i6, this.k);
|
||||
int i7 = this.z;
|
||||
canvas.drawLine(0.0f, i7, this.G, i7, this.k);
|
||||
for (int i8 = 0; i8 < this.C; i8++) {
|
||||
canvas.save();
|
||||
double d = ((((this.q * i8) * this.v) - i) * 3.141592653589793d) / this.E;
|
||||
float f = (float) (90.0d - ((d / 3.141592653589793d) * 180.0d));
|
||||
if (f >= 90.0f || f <= -90.0f) {
|
||||
canvas.restore();
|
||||
} else {
|
||||
int cos = (int) ((this.F - (Math.cos(d) * this.F)) - ((Math.sin(d) * this.q) / 2.0d));
|
||||
canvas2 = canvas;
|
||||
canvas2.translate(0.0f, cos);
|
||||
canvas2.scale(1.0f, (float) Math.sin(d));
|
||||
String str = strArr[i8];
|
||||
float f2 = this.o;
|
||||
this.i.setTextSize(f2);
|
||||
this.j.setTextSize(f2);
|
||||
int left = (int) (this.y + (getLeft() * 0.5d));
|
||||
Rect rect = new Rect();
|
||||
this.j.getTextBounds(str, 0, str.length(), rect);
|
||||
int width = rect.width();
|
||||
int width2 = getWidth() - (left * 2);
|
||||
if (width > 0) {
|
||||
left = (int) (left + ((width2 - width) * 0.5d));
|
||||
}
|
||||
int i9 = this.y;
|
||||
if (cos > i9 || this.q + cos < i9) {
|
||||
int i10 = this.z;
|
||||
if (cos > i10 || this.q + cos < i10) {
|
||||
if (cos >= this.y) {
|
||||
int i11 = this.q;
|
||||
if (cos + i11 <= this.z) {
|
||||
canvas2.clipRect(0, 0, this.G, (int) (i11 * this.v));
|
||||
canvas2.drawText(strArr[i8], left, this.q, this.j);
|
||||
this.f = this.n.indexOf(strArr[i8]);
|
||||
if (i8 == 3 && this.f == 0) {
|
||||
this.j.getTextBounds(strArr[i8], 0, strArr[i8].length(), new Rect());
|
||||
this.L = left + r2.width() + 25.0f;
|
||||
this.M = this.q;
|
||||
}
|
||||
}
|
||||
}
|
||||
canvas2.clipRect(0, 0, this.G, (int) (this.q * this.v));
|
||||
if (i8 == 1 || i8 == 5) {
|
||||
canvas2.drawText(strArr[i8], left, this.q, this.l);
|
||||
} else {
|
||||
canvas2.drawText(strArr[i8], left, this.q, this.i);
|
||||
}
|
||||
canvas.restore();
|
||||
} else {
|
||||
canvas.save();
|
||||
canvas2.clipRect(0, 0, this.G, this.z - cos);
|
||||
float f3 = left;
|
||||
canvas2.drawText(strArr[i8], f3, this.q, this.j);
|
||||
canvas.restore();
|
||||
canvas.save();
|
||||
canvas2.clipRect(0, this.z - cos, this.G, (int) (this.q * this.v));
|
||||
canvas2.drawText(strArr[i8], f3, this.q, this.i);
|
||||
canvas.restore();
|
||||
}
|
||||
} else {
|
||||
canvas.save();
|
||||
canvas2.clipRect(0, 0, this.G, this.y - cos);
|
||||
float f4 = left;
|
||||
canvas2.drawText(strArr[i8], f4, this.q, this.i);
|
||||
canvas.restore();
|
||||
canvas.save();
|
||||
canvas2.clipRect(0, this.y - cos, this.G, (int) (this.q * this.v));
|
||||
canvas2.drawText(strArr[i8], f4, this.q, this.j);
|
||||
canvas.restore();
|
||||
}
|
||||
canvas.restore();
|
||||
}
|
||||
}
|
||||
if (this.L != 0.0f && this.M != 0.0f) {
|
||||
canvas2.drawText(this.h.getResources().getString(R.string.year_old), this.L, ((this.y + this.z) / 2) + (this.M / 2.0f), this.m);
|
||||
}
|
||||
super.onDraw(canvas);
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
protected void onMeasure(int i, int i2) {
|
||||
c();
|
||||
setMeasuredDimension(this.G, this.D);
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public boolean onTouchEvent(MotionEvent motionEvent) {
|
||||
int action = motionEvent.getAction();
|
||||
if (action == 0) {
|
||||
this.I = motionEvent.getRawY();
|
||||
} else {
|
||||
if (action != 2) {
|
||||
if (!this.e.onTouchEvent(motionEvent) && motionEvent.getAction() == 1) {
|
||||
e();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
this.J = motionEvent.getRawY();
|
||||
float f = this.I;
|
||||
float f2 = this.J;
|
||||
this.K = f - f2;
|
||||
this.I = f2;
|
||||
this.b = (int) (this.b + this.K);
|
||||
if (!this.x) {
|
||||
int i = this.b;
|
||||
int i2 = this.B;
|
||||
float f3 = this.v;
|
||||
int i3 = this.q;
|
||||
if (i <= ((int) ((-i2) * i3 * f3))) {
|
||||
this.b = (int) ((-i2) * f3 * i3);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.b < ((int) (((this.n.size() - 1) - this.B) * this.v * this.q))) {
|
||||
invalidate();
|
||||
} else {
|
||||
this.b = (int) (((this.n.size() - 1) - this.B) * this.v * this.q);
|
||||
invalidate();
|
||||
}
|
||||
if (!this.e.onTouchEvent(motionEvent) && motionEvent.getAction() == 1) {
|
||||
e();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public final void setArrayList(List list) {
|
||||
this.n = list;
|
||||
c();
|
||||
invalidate();
|
||||
}
|
||||
|
||||
public final void setCurrentItem(int i) {
|
||||
this.B = i;
|
||||
this.b = 0;
|
||||
e();
|
||||
invalidate();
|
||||
}
|
||||
|
||||
public final void setCyclic(boolean z) {
|
||||
this.x = z;
|
||||
}
|
||||
|
||||
public final void setListener(LoopListener loopListener) {
|
||||
this.d = loopListener;
|
||||
}
|
||||
|
||||
public final void setTextSize(float f) {
|
||||
if (f > 0.0f) {
|
||||
this.o = (int) (this.h.getResources().getDisplayMetrics().density * f);
|
||||
}
|
||||
}
|
||||
|
||||
public final void b() {
|
||||
this.x = false;
|
||||
}
|
||||
|
||||
public LoopView(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
a(context);
|
||||
}
|
||||
|
||||
public LoopView(Context context, AttributeSet attributeSet, int i) {
|
||||
super(context, attributeSet, i);
|
||||
a(context);
|
||||
}
|
||||
|
||||
static void a(LoopView loopView) {
|
||||
loopView.e();
|
||||
}
|
||||
|
||||
protected final void a(float f) {
|
||||
Timer timer = new Timer();
|
||||
this.a = timer;
|
||||
timer.schedule(new LoopTimerTask(this, f, timer), 0L, 20L);
|
||||
}
|
||||
|
||||
protected final void a() {
|
||||
if (this.d != null) {
|
||||
new Handler().postDelayed(new LoopRunnable(this), 200L);
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,30 @@
|
||||
package com.ubt.jimu.user.view.picker;
|
||||
|
||||
import android.view.GestureDetector;
|
||||
import android.view.MotionEvent;
|
||||
import java.util.Timer;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
final class LoopViewGestureListener extends GestureDetector.SimpleOnGestureListener {
|
||||
final LoopView a;
|
||||
|
||||
LoopViewGestureListener(LoopView loopView) {
|
||||
this.a = loopView;
|
||||
}
|
||||
|
||||
@Override // android.view.GestureDetector.SimpleOnGestureListener, android.view.GestureDetector.OnGestureListener
|
||||
public final boolean onDown(MotionEvent motionEvent) {
|
||||
Timer timer = this.a.a;
|
||||
if (timer == null) {
|
||||
return true;
|
||||
}
|
||||
timer.cancel();
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override // android.view.GestureDetector.SimpleOnGestureListener, android.view.GestureDetector.OnGestureListener
|
||||
public final boolean onFling(MotionEvent motionEvent, MotionEvent motionEvent2, float f, float f2) {
|
||||
this.a.a(f2);
|
||||
return true;
|
||||
}
|
||||
}
|
65
sources/com/ubt/jimu/user/view/picker/MTimer.java
Normal file
65
sources/com/ubt/jimu/user/view/picker/MTimer.java
Normal file
@@ -0,0 +1,65 @@
|
||||
package com.ubt.jimu.user.view.picker;
|
||||
|
||||
import java.util.Timer;
|
||||
import java.util.TimerTask;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
final class MTimer extends TimerTask {
|
||||
int a = Integer.MAX_VALUE;
|
||||
int b = 0;
|
||||
final int c;
|
||||
final Timer d;
|
||||
final LoopView e;
|
||||
|
||||
MTimer(LoopView loopView, int i, Timer timer) {
|
||||
this.e = loopView;
|
||||
this.c = i;
|
||||
this.d = timer;
|
||||
}
|
||||
|
||||
@Override // java.util.TimerTask, java.lang.Runnable
|
||||
public final void run() {
|
||||
if (this.a == Integer.MAX_VALUE) {
|
||||
int i = this.c;
|
||||
if (i < 0) {
|
||||
float f = -i;
|
||||
LoopView loopView = this.e;
|
||||
float f2 = loopView.v;
|
||||
int i2 = loopView.q;
|
||||
if (f > (i2 * f2) / 2.0f) {
|
||||
this.a = (int) (((-f2) * i2) - i);
|
||||
} else {
|
||||
this.a = -i;
|
||||
}
|
||||
} else {
|
||||
float f3 = i;
|
||||
LoopView loopView2 = this.e;
|
||||
float f4 = loopView2.v;
|
||||
int i3 = loopView2.q;
|
||||
if (f3 > (i3 * f4) / 2.0f) {
|
||||
this.a = (int) ((f4 * i3) - i);
|
||||
} else {
|
||||
this.a = -i;
|
||||
}
|
||||
}
|
||||
}
|
||||
int i4 = this.a;
|
||||
this.b = (int) (i4 * 0.1f);
|
||||
if (this.b == 0) {
|
||||
if (i4 < 0) {
|
||||
this.b = -1;
|
||||
} else {
|
||||
this.b = 1;
|
||||
}
|
||||
}
|
||||
if (Math.abs(this.a) <= 0) {
|
||||
this.d.cancel();
|
||||
this.e.c.sendEmptyMessage(3000);
|
||||
} else {
|
||||
LoopView loopView3 = this.e;
|
||||
loopView3.b += this.b;
|
||||
loopView3.c.sendEmptyMessage(1000);
|
||||
this.a -= this.b;
|
||||
}
|
||||
}
|
||||
}
|
27
sources/com/ubt/jimu/user/view/picker/MessageHandler.java
Normal file
27
sources/com/ubt/jimu/user/view/picker/MessageHandler.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package com.ubt.jimu.user.view.picker;
|
||||
|
||||
import android.os.Handler;
|
||||
import android.os.Message;
|
||||
|
||||
/* loaded from: classes2.dex */
|
||||
final class MessageHandler extends Handler {
|
||||
final LoopView a;
|
||||
|
||||
MessageHandler(LoopView loopView) {
|
||||
this.a = loopView;
|
||||
}
|
||||
|
||||
@Override // android.os.Handler
|
||||
public final void handleMessage(Message message) {
|
||||
if (message.what == 1000) {
|
||||
this.a.invalidate();
|
||||
}
|
||||
int i = message.what;
|
||||
if (i == 2000) {
|
||||
LoopView.a(this.a);
|
||||
} else if (i == 3000) {
|
||||
this.a.a();
|
||||
}
|
||||
super.handleMessage(message);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user