In this example, we are going to draw to different lines which cross to each other on the center of the mobile window using Canvas class. "CanvasCrossLine" class created by us extends the Canvas class to draw both the lines. In the initialize() function the following methods is used to draw the lines on the mobile window:
The Application is as follows:
Source Code of Crossline.java
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.