4

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);
GrIsHu
  • 29,068
  • 10
  • 64
  • 102

1 Answers1

0

@pskink already gave the answer, but just to close it:

setBounds params are pixel size

Kevin van Mierlo
  • 9,554
  • 5
  • 44
  • 76