This is only a simple example for newbie to learn Wheel algorithm.
For fully blown of wheels, see ClsWheel v 1.4 by Klaus.
There is no intention to make it an advance Stopwatch & Timer!
Advance Stopwatch and Timer apk can be download free from the web.
Demonstrate:
Using scrollview in a Wheel object (simplified).
Manipulate the scrollview native methods/properties using reflection.
Enable/disable scrollview from scrolling manually.
Use "smoothScrollTo" to simulate scrolling programmatically.
Trick: to look like scrolling continuously from bottom/top.
Displaying many variation of one class at once.
Non-modal dialog does not stop timer in Stopwatch/Timer while running.
Entry a new title
Displaying the lap result
or while displaying maximum object allowed.
The last position when going to sleep is save in variables in a service.
If accidentally the back button is pressed, the last postion can be recovered except the lap data.
If it is considered the data is critical, change the algotithm to save it in a file.
Like Statemanager but simpler.
Note: if using the TimeCounter.zip - Don't let stopwatch/timer running in the main activity if not used, it drains the battery although in sleep mode.
ClsActionBar 1.42 for the menu.
Sleep orange -> in sleep mode
Sleep green -> in keep awake
LongClick at the del button to delete.
Library used:
Reflection v 2.40 for Wheel simulation.
Phone v.2.10 for WakeState
IME v.1.05 for automatic hiding the keyboard
TimeCounter.zip - using phw.PartialLock
TimeCounterTD.zip - using TimeDifference (phw.PartialLock not used) see #3
Designed & Tested on Tab 7"
For fully blown of wheels, see ClsWheel v 1.4 by Klaus.
There is no intention to make it an advance Stopwatch & Timer!
Advance Stopwatch and Timer apk can be download free from the web.
Demonstrate:
Using scrollview in a Wheel object (simplified).
Manipulate the scrollview native methods/properties using reflection.
Enable/disable scrollview from scrolling manually.
Use "smoothScrollTo" to simulate scrolling programmatically.
Trick: to look like scrolling continuously from bottom/top.
Displaying many variation of one class at once.
Non-modal dialog does not stop timer in Stopwatch/Timer while running.
Entry a new title
Displaying the lap result
or while displaying maximum object allowed.
The last position when going to sleep is save in variables in a service.
If accidentally the back button is pressed, the last postion can be recovered except the lap data.
If it is considered the data is critical, change the algotithm to save it in a file.
Like Statemanager but simpler.
Note: if using the TimeCounter.zip - Don't let stopwatch/timer running in the main activity if not used, it drains the battery although in sleep mode.
ClsActionBar 1.42 for the menu.
Sleep orange -> in sleep mode
Sleep green -> in keep awake
LongClick at the del button to delete.
Library used:
Reflection v 2.40 for Wheel simulation.
Phone v.2.10 for WakeState
IME v.1.05 for automatic hiding the keyboard
TimeCounter.zip - using phw.PartialLock
TimeCounterTD.zip - using TimeDifference (phw.PartialLock not used) see #3
Designed & Tested on Tab 7"
Attachments
Last edited: