Line problem

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Line problem

Postby Charles » Mon Jan 19, 2009 3:53 am

Hi All,

I want draw a break line like "- - - - - -",
I know Graphics has method drawLine() can draw lines, my code like this:
public void drawBreakLine(int x1, int y1, int x2, int y2) {
m_paint.setStyle(Paint.Style.FILL);
m_graphics.drawLine(x1, y1, x2, y2, m_paint);
}

But i do not know how to set paint to let graphics draw break line. Please help me out!

Charles
Charles
Freshman
Freshman
 
Posts: 4
Joined: Sat Dec 27, 2008 5:39 am

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 5 guests