To prevent the clipping you can simply disable children clipping on the various containers of your view hierarchy.
On Wed, Feb 10, 2010 at 7:32 AM, yaturner <[email protected]> wrote: > I have a RelativeLayout with numerous child layouts which in turn have > images in them, I wish to animate an ImageView in one of the child > layouts such that it appears to move from its starting position in one > child Layout and stop in another. > > I can start the image in the correct Layout with the following code > snippet > > ImageView card = new ImageView(this); > card.setImageDrawable( aDrawable ); > RelativeLayout.LayoutParams lp = new > RelativeLayout.LayoutParams( > RelativeLayout.LayoutParams.WRAP_CONTENT, > RelativeLayout.LayoutParams.WRAP_CONTENT); > lp.addRule( RelativeLayout.ALIGN_LEFT, R.id.Image01 ); > lp.addRule( RelativeLayout.ALIGN_BOTTOM, R.id.Image01 ); > > aChildLayout.addView(card, lp); > aChildLayout.bringChildToFront(card); > > The problem is that when I animate the card, it gets clipped as soon > as it 'leaves' its parent layout (aChildLayout). I tried adding > > aChildLayout.setClipChildren(false); > > But that did not help. > > Making card a child of the root layout doesn't work either because you > can only specify layout params relative to the layout to which card is > being added, so the card ends up in the upper left hand corner of the > root (0,0). > > Is there a way to position an ImageView that belongs to a parent view > such that it is aligned with an ImageView in one of its child Layout? > > -- > 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 > -- Romain Guy Android framework engineer [email protected] 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 [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

