| From | Sent On | Attachments |
|---|---|---|
| blim | Aug 29, 2008 12:51 am | |
| Megha Joshi | Aug 29, 2008 3:50 pm | |
| Romain Guy | Aug 29, 2008 4:42 pm | |
| Chris Cicc | Sep 2, 2008 12:46 pm | |
| Romain Guy | Sep 2, 2008 2:09 pm | |
| Chris Cicc | Sep 2, 2008 7:22 pm | |
| Chris Cicc | Sep 3, 2008 12:49 pm | |
| elephantbug | Sep 15, 2008 8:14 pm |
| Subject: | [android-developers] Re: getScale replacement for BaseAdapter in 0.9 beta? | |
|---|---|---|
| From: | Romain Guy (roma...@google.com) | |
| Date: | Sep 2, 2008 2:09:42 pm | |
| List: | com.googlegroups.android-developers | |
Hi,
Just override the method getChildStaticTransformation() in ViewGroup and for the given child, set the transformation to a smaller scale. Then in your constructors, make sure you set the flag FLAG_SUPPORT_STATIC_TRANSFORMATIONS in mGroupFlags:
mGroupFlags |= FLAG_SUPPORT_STATIC_TRANSFORMATIONS;
On Tue, Sep 2, 2008 at 12:47 PM, Chris Cicc <c.ci...@gmail.com> wrote:
Hi Romain Guy, How would I go about doing this? I'd really like to enable two pieces of functionality that were removed in the 0.9 Beta, a smaller scale for the not-in-focus images, and the ability to automatically loop (and rotate through) the gallery. Alpha on the edges would be nice, but I can live without that...
Any chance we could get a code sample on what you suggest?
Thanks, Chris
On Aug 29, 7:42 pm, "Romain Guy" <roma...@google.com> wrote:
Note that you can build your own replacement by creating a subclass of a ViewGroup and enabling support for children static transformations.
On Fri, Aug 29, 2008 at 3:50 PM, Megha Joshi <mjo...@google.com> wrote:
The getScale() API was removed from BaseAdapter, because now theGallery widget does not support scaling the focussed item in relation to the other items. No replacement was added. It is recommended that you don't alter the standard behavior of theGallerywidget. Is there any particular reason you want to do this?
2008/8/29 blim <bren...@gmail.com>
What should we use to replace getScale from BaseAdapter, which has been deprecated in 0.9? I'm trying to use this to scale images in a Galleryview in relation to which item is currently in focus.
-- Romain Guywww.curious-creature.org
-- Romain Guy www.curious-creature.org
--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to andr...@googlegroups.com To unsubscribe from this group, send email to andr...@googlegroups.com Announcing the new Android 0.9 SDK beta! http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---





