public class ViewGroupDrawingOrderHelper
extends java.lang.Object
| Constructor and Description |
|---|
ViewGroupDrawingOrderHelper(android.view.ViewGroup viewGroup) |
| Modifier and Type | Method and Description |
|---|---|
int |
getChildDrawingOrder(int childCount,
int index)
The index of the child view that should be drawn.
|
void |
handleAddView(android.view.View view)
This should be called every time a view is added to the ViewGroup in
ViewGroup.addView(android.view.View). |
void |
handleRemoveView(android.view.View view)
This should be called every time a view is removed from the ViewGroup in
ViewGroup.removeView(android.view.View) and ViewGroup.removeViewAt(int). |
boolean |
shouldEnableCustomDrawingOrder()
If the ViewGroup should enable drawing order.
|
void |
update()
Recheck all children for z-index changes.
|
public ViewGroupDrawingOrderHelper(android.view.ViewGroup viewGroup)
public void handleAddView(android.view.View view)
ViewGroup.addView(android.view.View).view - The view that is being addedpublic void handleRemoveView(android.view.View view)
ViewGroup.removeView(android.view.View) and ViewGroup.removeViewAt(int).view - The view that is being removed.public boolean shouldEnableCustomDrawingOrder()
ViewGroup.setChildrenDrawingOrderEnabled(boolean) with the value returned from this method when a view
is added or removed.public int getChildDrawingOrder(int childCount,
int index)
ViewGroup.getChildDrawingOrder(int, int).public void update()