It's an intentional limitation. Only views that are implemented by the
framework can be used, and only those that are annotated as safe for
remoting.
I don't know if there is a list provided in the SDK docs, but as of 1.5 the
supported Views are:

AbsoluteLayout
AnalogClock
Button
Chronometer
FrameLayout
ImageButton
ImageView
LinearLayout
ProgressBar
RelativeLayout
TextView

Tom

2009/4/21 Joel <jkluss...@gmail.com>

>
> I'm excited about the app widget functionality, and I've been playing
> with it for a bit.  I love the idea that downloadable apps can
> customize the home screen with arbitrary data.
>
> Is it possible to create my own custom views and use them inside of an
> app widget?  For instance, if I wanted to have MyView (which extends
> View) and use it in my layout, would that be possible?  I tried to do
> this, but ran into an InflateException that was thrown as a result of
> a ClassNotFoundException.  I wasn't sure if this was a result of some
> coding error on my part or if this was an intentional limitation of
> the framework.
>
> Joel
>
> >
>

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

Reply via email to