コード例 #1
0
ファイル: TileView.java プロジェクト: peterLaurence/TileView
 @Override
 public void onScaleChanged(float scale, float previous) {
   super.onScaleChanged(scale, previous);
   mDetailLevelManager.setScale(scale);
   mHotSpotManager.setScale(scale);
   mTileCanvasViewGroup.setScale(scale);
   mScalingLayout.setScale(scale);
   mCompositePathView.setScale(scale);
   mMarkerLayout.setScale(scale);
   mCalloutLayout.setScale(scale);
 }
コード例 #2
0
ファイル: TileView.java プロジェクト: peterLaurence/TileView
 /**
  * Add a ViewGroup to the TileView at a z-index above tiles and paths but beneath markers and
  * callouts. The ViewGroup will be laid out to the full dimensions of the largest detail level,
  * and will scale with the TileView. Note that only the drawing surface of the view is scaled,
  * other operations that depend on dimensions are not (e.g., hit areas, invalidation tests).
  *
  * @param viewGroup The ViewGroup to be added to the TileView, that will scale visually.
  */
 public void addScalingViewGroup(ViewGroup viewGroup) {
   mScalingLayout.addView(viewGroup);
 }