Drawing a filled rectangle with a border in android

后端 未结 3 1035
忘掉有多难
忘掉有多难 2020-12-08 18:43

Is there any way in Android to draw a filled rectangle with say a black border. My problem is that the canvas.draw() takes one paint object, and to my knowledge the paint ob

3条回答
  •  我在风中等你
    2020-12-08 18:53

    You draw a rectangle with the color of the border and the size of the rectangle plus the border, you change the color of the paint and draw again the rectangle with the normal size.

提交回复
热议问题