Support for Older Versions
I am designing an app with minimum SDK as 9 and target SDK as 18. I want
to display a clock on the screen. So I added a DigitalClock to the layout.
I got a warning saying that Digital Clock was deprecated in API 17. So I
added Text Clock. But TextClock is supported by only API 17 and above.
What should I do to make the digital clock appear if SDK found on device
is < 17 and make the Text Clock appear if SDK found is >= 17?
I am adding the DitialClock/TextClock through XML and not in the code behnd.
No comments:
Post a Comment