TextClock was added in API 17 (Android 4.2 Jelly Bean MR1) and substitutes the deprecated DigitalClock.
Please find attached a project that shows how to use the included Android Developers | TextClock object both as a Designer's Custom View and as a stand-alone class through its manual installation.
Having no previous experience with the Reflection lib, the above was made possible by what I believe to be one of the best tutorials read so far in this NG: @stevel05 's RatingBar library.
Looking at the code of this class you will easily agree that it is a very preliminary step and it should evolve in a more mature object once a clearer growing path would become evident from its use.
Umberto
Please find attached a project that shows how to use the included Android Developers | TextClock object both as a Designer's Custom View and as a stand-alone class through its manual installation.
Having no previous experience with the Reflection lib, the above was made possible by what I believe to be one of the best tutorials read so far in this NG: @stevel05 's RatingBar library.
Looking at the code of this class you will easily agree that it is a very preliminary step and it should evolve in a more mature object once a clearer growing path would become evident from its use.
Umberto
Attachments
Last edited: