Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion App widgets and remote views
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Tom Gibara  
View profile  
 More options Apr 21, 3:17 pm
From: Tom Gibara <m...@tomgibara.com>
Date: Tue, 21 Apr 2009 20:17:25 +0100
Local: Tues, Apr 21 2009 3:17 pm
Subject: Re: [android-developers] Re: App widgets and remote views

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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google