Skip to content

Android library to add a touch to draw widget to your android application.

License

Notifications You must be signed in to change notification settings

rishabhrishabh/HandDraw

 
 

Repository files navigation

HandDraw

Android library to add a touch to draw widget to your android application. It can also be used for capturing signatures img1 img2

Support

Minimum sdk is 15.

Add With Gradle Dependency

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

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

Add the dependency

compile 'com.github.gauravyadav673:HandDraw:v1.0'

Add HandDraw to layout

<com.raodevs.touchdraw.TouchEventsView
    android:id="@+id/canvas"
    android:layout_width="match_parent"
    android:layout_height="match_parent"/>

You can resize and position this view according to your needs.

Customization Through XML

<!--Change paint Color-->

       app:text_color="#00ffff" app:text_size="10f" app:bg_color="#000000"

Example : Full Customization

<com.raodevs.touchdraw.TouchEventsView
    android:id="@+id/canvas"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:text_color="#ffffff"
    app:text_size="10f"
    app:bg_color="#000000"/>

Access hand draw from java

TouchEventsView touchEventsView; //declaring
//put below line inside the onCreate() method
touchEventsView = (TouchEventsView)findViewById(R.id.canvas); //defining

After adding this to your project you can enjoy your custom handDraw view.

About

Android library to add a touch to draw widget to your android application.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%