android - Pallette Android Eclipse ADT 中没有 map View ?

标签 android android-layout android-mapview

在我的 ADT 中使用布局时,我没有在 Palette 中看到 mapview。我已经搜索了所有类别。它在哪里?

我已经尝试将 XML 代码直接放入布局文件中,但我没有看到:

Missing styles. Is the correct theme chosen for this layout? Use the Theme combo box above the layout to choose a different layout, or fix the theme style references.

Failed to find style 'mapViewStyle' in current theme

我是否应该以某种方式导入一些额外的库?

我的项目设置为以 Google API 级别 15 为目标。

最佳答案

谷歌地图 v1,在调色板中有一个 MapView,已被弃用,取而代之的是 Google Maps v2 ,这确实需要您导入 Google Play Services Library .

Google Maps v2 Overview详细介绍了如何开始使用 map v2。

关于android - Pallette Android Eclipse ADT 中没有 map View ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16049941/

相关文章:

java - 在基本 SQLite 页面上找不到方法 addButtonClick

android - 使用 LinearLayouts 将高度一分为三

android - 当没有足够的项目来填充屏幕高度时,如何强制 RecyclerView 滚动

iphone - 从 MKUserTrackingModeFollowWithHeading 切换模式时如何始终保持 iOS 6 中的 MKMapView 朝北

android - 为 MapView 中点击的 OverlayItems 创建自定义弹出窗口

android - 在 Android 应用程序和缩放级别中使用 Google map

android - 如何从 VectorDrawable 获取位图

Android WebView 请求焦点 : How to prevent scrolling to top?

android - 如何以原始方向将位图保存为 Jpg 图像?

android - 为什么我的按钮不显示设置样式?