An awesome sliding button library for android.
Use this view such as in the camera app/activity where you can tap on a button to take a picture and hold the button to start recording video and release is to finish.
Repository that contains android tutorial projects and sample applications.