[android-developers] Re: Layout animation, clipping to parent

2009-11-08 Thread RalphLeon
Anyone? This seems to be the case with all layout animations, not just
Gallery's.

On Oct 29, 10:54 am, RalphLeon  wrote:
> So, if you have a layout animation attached to a gallery with the
> views coming from _outside_ of the parent (a translation animation):
> how do we get the views to not be clipped to the gallery?
>
> At first guess:
>
>     Gallery.setClipChildren(false);
>
> seems like it should work, but the animations are still clipped to the
> bottom of the gallery!
>
> My current work around is to setClipPadding(false) then add 100px of
> padding. Finally use a relative layout with negative margins to put
> things in the correct position. This _seems_ to work, though smells of
> "hack".
>
> Any thoughts?

-- 
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


[android-developers] Re: Layout animation, clipping to parent

2009-11-10 Thread RalphLeon
Worked like a charm, the trick was setting setClipChildren to the
layout that enclosed the galleries.

On Nov 8, 10:40 am, Romain Guy  wrote:
> Call setClipChildren() on both the gallery and its parent.
>
>
>
>
>
> On Sun, Nov 8, 2009 at 10:05 AM, RalphLeon  wrote:
> > Anyone? This seems to be the case with all layout animations, not just
> > Gallery's.
>
> > On Oct 29, 10:54 am, RalphLeon  wrote:
> >> So, if you have a layout animation attached to a gallery with the
> >> views coming from _outside_ of the parent (a translation animation):
> >> how do we get the views to not be clipped to the gallery?
>
> >> At first guess:
>
> >>     Gallery.setClipChildren(false);
>
> >> seems like it should work, but the animations are still clipped to the
> >> bottom of the gallery!
>
> >> My current work around is to setClipPadding(false) then add 100px of
> >> padding. Finally use a relative layout with negative margins to put
> >> things in the correct position. This _seems_ to work, though smells of
> >> "hack".
>
> >> Any thoughts?
>
> > --
> > 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
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them

-- 
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


[android-developers] Passing a Service a Handler

2009-08-10 Thread RalphLeon

So, I've read the android AIDL documentation and have a general idea
of how RPC works between an Activity and a Service. However, for my
application it seems overboard to implement such features: basically,
I want to pass a Service a nice handler so its thread can pass data to
my Activity. Currently I'm getting around this by using a static
public member (a hack) but I would prefer just passing a Handler
object in the Service's starting Intent. E.g. I can easily pass ints
to my service upon creation:

int x = 0;
Intent svc = new Intent(this, MyService.class);
svc.putExtra("x",x);
startService(svc);

However since a Handler isn't serialize-able , I haven't found a way
to pass it to the service without a simple static member hack. Any
insight? Or, am I just going to have to suck it up and do a formal RPC
to the service?

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Default Sound Resources

2009-08-30 Thread RalphLeon

Hello!

I have a timer application and I was hoping to add the default sound
resources that are available on the device, a la android.R.drawable.*

Are these resources available in any default location? Or shall I just
compile my own set of royalty-free sounds?

Cheers,
Ralph

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Sampling points along a path

2009-10-29 Thread RalphLeon

In my application I use cubic bezier curves to position images in a
pattern.

I just noticed that Path has a nice "cubicTo" method, that can
construct the same shape that I manually sample. However, I need to be
able to extract the X,Y positions along the path... is there anyway to
access these points given an arbitrary path?

Cheers,
Ralph
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Layout animation, clipping to parent

2009-10-29 Thread RalphLeon

So, if you have a layout animation attached to a gallery with the
views coming from _outside_ of the parent (a translation animation):
how do we get the views to not be clipped to the gallery?

At first guess:

Gallery.setClipChildren(false);

seems like it should work, but the animations are still clipped to the
bottom of the gallery!

My current work around is to setClipPadding(false) then add 100px of
padding. Finally use a relative layout with negative margins to put
things in the correct position. This _seems_ to work, though smells of
"hack".

Any thoughts?



--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---