Ajithvgiri Canvas Save

Canvas Drawing Android Library

Project README

Android Arsenal

Drawing App Library

Simple android library for drawing

Drawing App

Setup

1. Provide the gradle dependency

Add it in your root build.gradle at the end of repositories:

	allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

Add the gradle dependency to your app module build.gradle file:

	dependencies {
	        compile 'com.github.ajithvgiri:Canvas-Library:v1.1.1'
	}

2. Add the Canvas View view to your Relative Layout xml file

Make sure layout_width and layout_height are match-parent. and make sure the background of the layout must be white

         <RelativeLayout
                android:id="@+id/parentView"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:background="#FFFFFF" />

3. Add the canvas view to the layout

        RelativeLayout parentView = findViewById(R.id.parentView);
        CanvasView canvasView = new CanvasView(this);
        parentView.addView(canvasView);

To clear the drawing

        canvasView.clearCanvas();
Open Source Agenda is not affiliated with "Ajithvgiri Canvas" Project. README Source: ajithvgiri/canvas
Stars
38
Open Issues
1
Last Commit
3 years ago
Repository
License

Open Source Agenda Badge

Open Source Agenda Rating