When I set the bounds in a code like the following one, what is the scale?, dp? px?,
ShapeDrawable myLine= new ShapeDrawable(new RectShape());
myLine.setBounds(0, 0, 1, MAX_HEIGHT);
myLine.draw(canvas);
When I set the bounds in a code like the following one, what is the scale?, dp? px?,
ShapeDrawable myLine= new ShapeDrawable(new RectShape());
myLine.setBounds(0, 0, 1, MAX_HEIGHT);
myLine.draw(canvas);
@pskink already gave the answer, but just to close it:
setBounds params are pixel size