ProgressCircle.java revision 7e3fa36d69ffee874dd364b8e3d9aa3cab9a273b
/*
* FreeOTP
*
* Authors: Nathaniel McCallum <npmccallum@redhat.com>
*
* Copyright (C) 2013 Nathaniel McCallum, Red Hat
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
public class ProgressCircle extends View {
private Paint mPaintInner;
private Paint mPaintOuter;
private int mProgressInner;
private int mProgressOuter;
private int mMax;
private boolean mOuter;
}
}
super(context);
}
try {
} finally {
a.recycle();
}
}
mPaintInner = new Paint();
mPaintInner.setAntiAlias(true);
mPaintOuter = new Paint();
mPaintOuter.setAntiAlias(true);
}
}
public boolean getOuter() {
return mOuter;
}
}
public int getMax() {
return mMax;
}
public void setProgress(int inner) {
else
invalidate();
}
}
if (mOuter) {
}
}
}