Added in API level 18

ViewGroupOverlay


public class ViewGroupOverlay
extends ViewOverlay

java.lang.Object
   ↳ android.view.ViewOverlay
     ↳ android.view.ViewGroupOverlay


A group overlay is an extra layer that sits on top of a ViewGroup (the "host view") which is drawn after all other content in that view (including the view group's children). Interaction with the overlay layer is done by adding and removing views and drawables.

ViewGroupOverlay is a subclass of ViewOverlay, adding the ability to manage views for overlays on ViewGroups, in addition to the drawable support in ViewOverlay.

Summary

Public methods

void add(View view)

Adds a View to the overlay.

void remove(View view)

Removes the specified View from the overlay.

Inherited methods