MDM Adjust bookmarks implementation for new UI

Recent UI changes to bookmarks broke the MDM overlay functionality
because the new Tile based containers do not have a way to get
pre-layout continer metrics.

The solution is to get the metrics from dimen resource (xml).

I also refactored overlayBookmarkBitmap() to take container metrics
as input and perform all pre-scaling calculations internally, which
simplifies calling code.  Also added an overlayMarginX parameter, which
allows side-to side adjustment of the overlay.

Change-Id: I17ea1ea6ca9412d8ab960fdfc4e9ca5fbe5c30c3
3 files changed