我是新来的Android。我想画一条线,从一个地方到另一个在我的应用程序。怎样绘制在Android的两点间的直线?请帮我。
I am new to Android. I want to draw a line from one location to another in my application. How can I draw a line between two points in Android? Please help me.
您应该添加重叠
地图和覆盖它的的OnDraw()
方法。无论你想在地图上这种方式可以借鉴。
You should add an Overlay
to the map and override it's onDraw()
method. That way you can draw whatever you want on the map.