Hi, I am trying to create a widget which functions in a similar manner to the new Marketplace widget.
The Marketplace widget fades between different views (each view being a sample Marketplace app with a TextView and an ImageView describing the Marketplace app). I would like to mimic this fading between different views behavior. Unfortunately, as is clearly stated in http://developer.android.com/guide/topics/appwidgets/index.html#CreatingLayout a ViewFlipper view is not supported. So, how can we mimic this fading behavior? 1. RemoteViews requires any view's class that is added to implement @RemoteView. I tried creating the following class: @RemoteView public class MyViewFlipper extends ViewFlipper { public MyViewFlipper(Context context) { super(context); } public MyViewFlipper(Context context, AttributeSet attrs) { super(context, attrs); } } but referencing that class in the layout will cause the widget's view to fail to load. ("Problem loading widget") So my trick about trying to use @RemoteView doesn't work. 2. Update the widget a LOT (via AlarmManager) for a short period of time. During this time, we will somehow set the transparency of one view down while the other's goes up. But I believe this is a very inefficient way of doing this, because the AlarmManager is not meant for updates that occur more frequently than a second. 3. ??? Someone help me out here :) Could I start an AsyncTask which will do #2 but without the AlarmManager? Heck, I don't even know exactly how the fade really works. Any other ideas would help too! Thanks for the advice! -Matt -- 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

