Android 地图上的运动
如何将箭头(标记)指向用户的移动 在emulator上,我沿着红色箭头()的方向移动,并且标记会向侧面移动 我的代码,在地图上添加箭头:Android 地图上的运动,android,maps,android-mapview,Android,Maps,Android Mapview,如何将箭头(标记)指向用户的移动 在emulator上,我沿着红色箭头()的方向移动,并且标记会向侧面移动 我的代码,在地图上添加箭头: LinearLayout vGoing = (LinearLayout) View.inflate(getApplicationContext(), R.layout.mylocationidentificationgoing, null); mapView.addView(vGoing, new MapView.LayoutParams(ViewGroup.
LinearLayout vGoing = (LinearLayout) View.inflate(getApplicationContext(), R.layout.mylocationidentificationgoing, null);
mapView.addView(vGoing, new MapView.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT,ViewGroup.LayoutParams.WRAP_CONTENT,point,MapView.LayoutParams.BOTTOM_CENTER));
您可以使用GPS来跟踪Lat Long中的增量变化,并使用它来显示箭头的方向