We are creating an android app that will be used to survey truck drivers and gather some traffic information. One of the questions is "What is the amount of time that you spend driving, sleeping or stopped". The user will have to answer, in increments of one hour, how he shares his time within those activities. We will get that information and send to the server. Here is a visual representation of the data entered by the user according to his answers.
The user must account for the entire 24 hour period and he can't mark more than 1 activity at the same time.
What would be the best way, to have the user enter this data in the android app?