Reputation: 1441
I try to follow this example ChronometerDemo.java, but I got some problem:
Anyone can help? Appreciate, Daisy
Upvotes: 0
Views: 709
Reputation: 30168
There seems to be another Chronometer
class present that does not extend from View
, which is why you can't cast it. It's hard to tell without your code, but did you rename ChronometerDemo.java
to Chronometer.java
? ChronometerDemo
is an Activity, and is not supposed to be returned by a findViewById
call.
This is, of course, assuming you're talking about this.
Upvotes: 1