使用 Android MapView 而不使用 MapActivity?
我正在封装 Android 功能和服务的过程中,我试图找到 Android 的 MapActivity 的代码,看看它是如何管理它包含的 MapView 的,以便在这个发生冲突的该死的 MapActivity 之外实现它使用我的 Android 包装器架构...
是否可以在没有 MapActivity 的情况下使用 MapView? 有谁知道使用 MapView 的法律限制(我认为适合我的应用程序)? (例如在一个屏幕上显示四个朋友...?
提前致谢, 亚当.
I'm in the process of encapsulating Android features and services, and I was trying to find the code of the MapActivity of Android to see how it is managing the MapView it contains, in order to implement this out side of this darn MapActivity which collides with my Android wrapper architecture...
Is it even possible to use the MapView without the MapActivity?
Does anyone know about legal limitations of using the MapView, as I see fit in my application?
(for example to display four friend on a single screen...?
Thanks in advance,
Adam.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在我看来,答案是否定的。我还没有测试过它,但我认为不会,因为 MapActivity 包含一些仅适用于 MapActivity 的类和方法。它与
listview
有一些不同,其中listview
可以使用ListActivity
和 Activity 来绘制。In my opinion, answer is not.I have not Tested it but i think no because
MapActivity
included some classes and method that is available toMapActivity
only. Its some how different fromlistview
in whichlistview
can be drawn usingListActivity
and Activity.不,没有MapActivity就不能使用MapView,因为MapActivity是Activity的特殊子类,由Maps库提供,它提供了重要的地图功能。
编辑
您可以根据您的要求显示地图,您可以按宽度和高度更改其大小并用它显示其他控件
No you can't use MapView without MapActivity the reason is MapActivity is special sub-class of Activity, provided by the Maps library, which provides important map capabilities.
Edit
You can display map as per your requirement and you can change it's size by width and height and display other control with it