DrawDemo is a customizable drawing application for Android. It allows users to draw on the screen with different colors, stroke widths, and styles. The app supports dotted and dashed lines through the use of a DashPathEffect.
- Customizable drawing canvas
- Support for different colors, stroke widths, and styles
- Dotted and dashed lines
- Clear canvas functionality
- Clone the repository:
git clone https://github.com/Scot8/DrawDemo.git
- Open the project in Android Studio.
- Build and run the project on an Android device or emulator.
- Touch the screen to start drawing.
- Move your finger to draw lines.
- Lift your finger to stop drawing.
- Use the color buttons to change the drawing color.
- Use the custom color input fields to set a specific color.
- Use the stroke width buttons to change the drawing stroke width.
- Use the style buttons to change between fill and stroke styles.
- Use the line style buttons to switch between solid, dashed, and dotted lines.
- Use the clear button to clear the drawing canvas.
- Custom
Viewclass for drawing. - Manages the drawing paths, colors, stroke widths, and styles.
- Custom
Pathclass that includes aPaintobject for styling.
- Main activity that sets up the user interface and handles user interactions.