Michael,
Is "Drawing" your full package name? Sounds like it's not.
Unlike other places (e.g. the manifest), you need to use fully-qualified
class names in layout files.
So if your application is defined in (for example) package named
"org.MichaelAquilina.EZPaint", and your DrawingLayout in
"org.MichaelAquilina.EZPaint.Drawing", then the XML needs to have this:
<org.MichaelAquilina.EZPaint.Drawing.DrawingLayout/>
Other than that, look at logcat output (either in Eclipse or "adb
logcat" from the Windows/Linux/MacOS command line). After the app
crashes, you should see the line that says "Caused by:" and then a stack
trace for the exception.
-- Kostya
16.08.2010 15:08, [email protected] пишет:
Hi guys, im having a problem getting a custom view that i created on
the xml layout file.
i have a class named DrawingLayout which extends FrameLayout
it is found in the package Drawing
as stated on this page
http://developer.android.com/guide/topics/ui/custom-components.html
i used the following decleration in xml
<Drawing.DrawingLayout ... />
but whenever i run the program with that decleration i get a runtime
exception error on SetContentView( ... )
is there something im not doing well? If you need any more details
please tell me because i cant seem to figure this one out.
--
Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
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