Android library to add a touch to draw widget to your android application.
It can also be used for capturing signatures
Minimum sdk is 15.
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
compile 'com.github.gauravyadav673:HandDraw:v1.0'
<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.
<!--Change paint Color-->
app:text_color="#00ffff" app:text_size="10f" app:bg_color="#000000"
<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"/>
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.