You can do this in two ways:
1. Your own Implementation
You can use canvas to draw signatures. Use paint object to set signature stroke size & color.
2. Simply use library
See SignatureView library. It will do all, what you want.
https://github.com/zahid-ali-shah/SignatureView