the constructor InfoWindow(TextView,LatLng,int,new InfoWindow.OnInfoWindowClickListener(){}) is undefined
跪求the constructor InfoWindow(TextView,LatLng,int,new InfoWindow.OnInfoWindowClickListener(){}) is undefined如何解決,需要改成什么?求指點(diǎn)!
跪求the constructor InfoWindow(TextView,LatLng,int,new InfoWindow.OnInfoWindowClickListener(){}) is undefined如何解決,需要改成什么?求指點(diǎn)!
2015-03-08
舉報(bào)
2015-03-26
百度sdk已經(jīng)更新了,現(xiàn)在用的是4個(gè)參數(shù)的,且將text轉(zhuǎn)換下BitmapDescriptor btv = BitmapDescriptorFactory.fromView(tv);
public?InfoWindow(BitmapDescriptor?bd, ? ? ? ? ?LatLng?position,
? ? ? ? ?int?yOffset, ? ? ? ? ?InfoWindow.OnInfoWindowClickListener?listener)
參數(shù):
bd?- InfoWindow 展示的bitmap
position?- InfoWindow 顯示的地理位置
yOffset?- InfoWindow Y 軸偏移量
listener?- InfoWindow 點(diǎn)擊監(jiān)聽者
--------------------------------------------------------------------------------------------------
參考:http://wiki.lbsyun.baidu.com/cms/androidsdk/doc/v3_3_0/index.html?com/baidu/mapapi/map/class-use/InfoWindow.OnInfoWindowClickListener.html