Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import com.nineoldandroids.util.Property;

public class TimelyView extends View {
private static final float RATIO = 1f;
private static final float RATIO = 1f;
private static final Property<TimelyView, float[][]> CONTROL_POINTS_PROPERTY = new Property<TimelyView, float[][]>(float[][].class, "controlPoints") {
@Override
public float[][] get(TimelyView object) {
Expand All @@ -25,9 +25,9 @@ public void set(TimelyView object, float[][] value) {
object.setControlPoints(value);
}
};
private Paint mPaint = null;
private Path mPath = null;
private float[][] controlPoints = null;
private Paint mPaint = null;
private Path mPath = null;
private float[][] controlPoints = null;

public TimelyView(Context context) {
super(context);
Expand Down Expand Up @@ -102,9 +102,9 @@ protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
int maxHeight = (int) (widthWithoutPadding / RATIO);

if (widthWithoutPadding > maxWidth) {
width = maxWidth + getPaddingLeft() + getPaddingRight();
width = maxWidth + getPaddingLeft() + getPaddingRight() + 3;
} else {
height = maxHeight + getPaddingTop() + getPaddingBottom();
height = maxHeight + getPaddingTop() + getPaddingBottom() + 3;
}

setMeasuredDimension(width, height);
Expand Down