Initial version -- added millennium read funcionality

This commit is contained in:
Pablo
2026-03-09 22:05:28 +01:00
commit 77c2ded482
2770 changed files with 141927 additions and 0 deletions
@@ -0,0 +1,52 @@
package com.google.maps.android.ui;
import android.content.Context;
import android.graphics.Canvas;
import android.util.AttributeSet;
import android.widget.TextView;
/* JADX INFO: loaded from: classes2.dex */
public class SquareTextView extends TextView {
private int mOffsetLeft;
private int mOffsetTop;
public SquareTextView(Context context) {
super(context);
this.mOffsetTop = 0;
this.mOffsetLeft = 0;
}
public SquareTextView(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
this.mOffsetTop = 0;
this.mOffsetLeft = 0;
}
public SquareTextView(Context context, AttributeSet attributeSet, int i) {
super(context, attributeSet, i);
this.mOffsetTop = 0;
this.mOffsetLeft = 0;
}
@Override // android.widget.TextView, android.view.View
protected void onMeasure(int i, int i2) {
super.onMeasure(i, i2);
int measuredWidth = getMeasuredWidth();
int measuredHeight = getMeasuredHeight();
int iMax = Math.max(measuredWidth, measuredHeight);
if (measuredWidth > measuredHeight) {
this.mOffsetTop = measuredWidth - measuredHeight;
this.mOffsetLeft = 0;
} else {
this.mOffsetTop = 0;
this.mOffsetLeft = measuredHeight - measuredWidth;
}
setMeasuredDimension(iMax, iMax);
}
@Override // android.view.View
public void draw(Canvas canvas) {
canvas.translate(this.mOffsetLeft / 2, this.mOffsetTop / 2);
super.draw(canvas);
}
}