Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you set a line's width when drawing in Android?

Tags:

android

How to set line width? What method is used for it?

like image 436
AndroiDBeginner Avatar asked Dec 26 '09 16:12

AndroiDBeginner


1 Answers

Check out Paint.setStrokeWidth().

You draw by making various Drawable objects. The objects themselves are separated from the instructions about how to draw them; that's covered by the Paint class. Paint instances have a method that allows you set the width of the stroke that will be used to draw the objects, setStrokeWidth(), which is what you want.

like image 116
John Feminella Avatar answered Sep 22 '22 14:09

John Feminella