簡體   English   中英

我可以編輯適用於Android的Google Maps API嗎?

[英]Can I edit the Google maps api for android?

我想對其進行編輯,以便在所需的地圖中添加一些TextView。 例如,右上角的文本視圖具有位置准確性的實時信息。

如果您知道一種無需修改Google Maps api for android的方法,請告訴我。

我已經閱讀了該服務的使用條款,但是如果可以修改地圖罐子,則無法得到明確的答案。

您無需修改​​maps API。 您需要做的就是將RelativeLayout用作布局的根容器,並向其中添加MapView和TextView以顯示所需的文本。

這是一個示例代碼

<RelativeLayout 
 android:layout_width="fill_parent"
 android:layout_height="fill_parent">
 <MapView 
  android:id="@+id/mapview"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
   />
 <TextView
  android:id="@+id/textview"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:layout_alignTop="@id/mapview"
  android:layout_alignParentRight="true"/>

 </RelativeLayout>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM