Code example for AtomicBoolean

 * View. 
 * @author Justin Wetherell <> 
public class RotatableImageView extends View {
    private static final AtomicBoolean drawing = new AtomicBoolean(false);
    private static final Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG);
    private static int parentWidth = 0;
    private static int parentHeight = 0;
    private static Matrix matrix = null;
    private static Bitmap bitmap = null;
    private int rotationValue;
    private boolean isCompassEnabled;
    public RotatableImageView(Context context) {
Connect your IDE to all the code out there  Get Codota for Java