Mention full package name in your XML file.
Like:
<com.mypackage.views.ResettableChronometer
android:layout_width="fill_parent"
android:layout_height="fill_parent"/>

On May 15, 1:59 am, Brian Carmicle <[email protected]> wrote:
> Right now, I'm trying to extend Chronometer (1) with a class called
> ResettableChronometer. When I try to use it, however, my app crashes
> because it couldn't "inflate" ResettableChronometer from the XML
> layout file I was using for that Activity. I've found some general
> documentation on Views (2), which references LayoutInflater, but I'm
> having trouble understanding how this all works (I'm new to Android).
> Is there some sort of tutorial or walkthough that can help me
> understand how to do this?
>
> (1)http://developer.android.com/reference/android/widget/Chronometer.html
> (2)http://developer.android.com/reference/android/view/View.html
> (3)http://developer.android.com/reference/android/view/LayoutInflater.html

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to