Does the Motorola Xoom have drawing bugs, or is it just me?
<p>I've developed a little game and a friend/colleague of mine tried it on his Motorola Xoom tablet, only to find the rendering was all messed up! I stripped everything down trying to simplify everything to see what was wrong, and I'm thinking the Motorola Xoom is just buggy when it comes to drawing. The exact same APK was used on both, with the exact same drawing code. I've got a custom view that's just drawing a black rectangle right now, like so:</p>

<pre><code>@Override
public void draw(Canvas canvas) {
    super.draw(canvas);

    canvas.save();
    canvas.scale(16.0f, 16.0f);
    float lineWidth = 20 / 16.0f;

    paint.setAntiAlias(false);
    paint.setStyle(Paint.Style.STROKE);
    paint.setStrokeWidth(lineWidth);
    paint.setColor(boardColor); // boardColor is just black
    canvas.drawRect(100 / 16.0f,
                    100 / 16.0f,
                    200 / 16.0f,
                    200 / 16.0f,
                    paint);

    canvas.restore();
}
</code></pre>

<p>On my Sprint Galaxy SII, Android 4.0.4, I get (I also get this on a Galaxy SIII device):
<img src="http://i.stack.imgur.com/TGyES.png" alt="Galaxy SII screenshot"></p>

<p>On my friends Motorola Xoom, Android 4.1.2, I get:
<img src="http://i.stack.imgur.com/HEeDW.png" alt="Motorola Xoom screenshot"></p>

<p>All I want it is a correctly sized, non-antialiased rectangle. What am I doing wrong? Or is it the Xoom?</p>
