草庐IT

android - 理解 boundCenterBottom()

我试图在我的一个覆盖类中复制ItemizedOverlay.boundCenterBottom()的行为。我相当确定我可以使用setBounds()来做到这一点,但我完全不知道setBounds()到底在做什么。 最佳答案 我相信我找到了答案mapIcon_=mapView.getResources().getDrawable(R.drawable.map_marker_v);mapIcon_.setBounds(-mapIcon_.getIntrinsicWidth()/2,-mapIcon.getIntrinsicHeight(