Re: [android-developers] Controlling the rendering order of child views

2010-05-11 Thread Romain Guy
Hi,

You can do it by calling setChildrenDrawingOrderEnabled(true) and then
implementing getChildDrawingOrder(int, int).

On Tue, May 11, 2010 at 11:37 AM, Divkis  wrote:
> Hi,
>     I have an application wherein I extend the ViewGroup class for
> laying out the child views as per my requirements. Some of the child
> views are instances of ImageView class and have partly transparent
> background. Given the alpha blending is order dependent, I would like
> to control the rendering order of the ImageView inside the my own
> Layout class which extends ViewGroup. Could someone please suggest how
> could I achieve the same?
>
> Thanks in advance,
> DivKis
>
> --
> 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] Controlling the rendering order of child views

2010-05-11 Thread Divkis
Hi,
 I have an application wherein I extend the ViewGroup class for
laying out the child views as per my requirements. Some of the child
views are instances of ImageView class and have partly transparent
background. Given the alpha blending is order dependent, I would like
to control the rendering order of the ImageView inside the my own
Layout class which extends ViewGroup. Could someone please suggest how
could I achieve the same?

Thanks in advance,
DivKis

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