Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在我的 android 应用程序中绘制一个平面图,稍后将用于导航用户等等。我需要一些关于如何在我的应用程序中以编程方式绘制平面图的建议?是图形类是唯一的方法吗?
当然,我无法为您提供执行此操作的代码,但您可以定义自定义视图:
public class FloorView extends View { @Override protected void onDraw(Canvas canvas) { // Use the canvas to draw to floor map. } }