getCombinedBackgroundBitmap

This method takes a view and returns a single bitmap that is the layered combination of background drawables of this view and all its ancestors. It can be used to abstract away the specific implementation of a view hierarchy that is not exposed via class APIs or a view hierarchy that depends on the platform version. Instead of hard-coded lookups of particular inner implementations of such a view hierarchy that can break during refactoring or on newer platform versions, calling this API returns a "combined" background of the view. For example, it is useful to get the combined background of a popup / dropdown without delving into the inner implementation details of how that popup is implemented on a particular platform version.