android 地图 markeroptions,android studio - Custom Marker Options in google map - Stack Overflow

Can we make Custom MarkerOptions in google?

I want to use Custom MarkerOptions to show image in Dialog box like 62b88a6e098af98f5500f2d4dbc94d1a.png Containng Name as title, and two image within it.

android:id="@+id/badge"

android:layout_width="18dp"

android:layout_height="wrap_content"

android:layout_marginRight="5dp"

android:src="@drawable/image_2"

android:adjustViewBounds="true">

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:orientation="vertical">

android:id="@+id/title"

android:layout_width="20dp"

android:layout_height="wrap_content"

android:layout_gravity="center_horizontal"

android:ellipsize="end"

android:text="harish"

android:singleLine="true"

android:textColor="#ff000000"

android:textSize="7dp"

android:textStyle="bold" />

android:id="@+id/snippet"

android:layout_width="10dp"

android:layout_height="10dp"

android:ellipsize="end"

android:src="@drawable/icon_location2"

android:singleLine="true"

android:textColor="#ff7f7f7f"

android:textSize="14dp" />

With default MarkerOption i can only get Title , Snippet in dialog box like this:

public void addMarkersToMap() {

mArun = mMap.addMarker(new MarkerOptions()

.position(ARUN)

.title("Arun")

.snippet("Match stat:")

.icon(BitmapDescriptorFactory.defaultMarker

(BitmapDescriptorFactory.HUE_AZURE)));

a01c79d1fd4b755c3477688de8e87c45.png

help me with some suggestion .

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值