I think you can get DecorView using DecorView by setting setClipChildren() to false for all ImageView parents. This allows you to animate the View from your layout, even outside its parent (and even Activity ). I mainly use a helper method:
public static void setClipView(View view, boolean clip) { if (view != null) { ViewParent parent = view.getParent(); if(parent instanceof ViewGroup) { ViewGroup viewGroup = (ViewGroup) view.getParent(); viewGroup.setClipChildren(clip); setClipView(viewGroup, clip); } } }
Therefore, simply use this method on an ImageView as follows:
LayoutHelper.setClipView(imageView, false);
To animate the View itself, you must use the new animation API introduced with Android 3.0 (Honeycomb - API Level 11).
This DevBytes video is also related to this. It processes custom Activity animations and duplicates an ImageView to animate the transition from one Activity to another. This is basically the same thing you are trying to do, just in two different Activities .
source share