How To Use Both Digitalclock And Textclock For Android Devices From Api Level 8 To 19?
I'm making the application for devices from API level 8 to 19, that contains clock. I tried to put the DigitalClock to layout. And I get message from Eclipse that this class depre
Solution 1:
Option #1: Use DigitalClock
in res/layout/
files and TextClock
in res/layout-v17/
files. In your Java code that manipulates the clocks, see which clock implementation that you get for your widget ID and branch accordingly.
Option #2: Try to backport TextClock
by using its source code, so you can create your own version that works back to older API levels.
Option #3: Just use DigitalClock
and hope that, while it is deprecated, that Google will still support it.
Option #4: Use neither class and create your own clock implementation.
Post a Comment for "How To Use Both Digitalclock And Textclock For Android Devices From Api Level 8 To 19?"