getOriginOfCenteredView

Computes the top left coordinates for the view to be centered inside its parent.

Return

A android.graphics.Point whose coordinates represent the top left of view when centered inside its parent.

Parameters

container

A parent android.view.View that wraps view.

view

A child android.view.View of container.