public class BubbleOptions
extends java.lang.Object
Constructor and Description |
---|
BubbleOptions() |
Modifier and Type | Method and Description |
---|---|
BubbleOptions |
background(Bitmap[] background)
设置背景图片
|
BubbleOptions |
background(Drawable[] background)
设置背景图片
|
BubbleOptions |
content(java.lang.String content)
设置气泡要显示的内容
|
BubbleOptions |
contentView(View view)
设置内容控件
|
BubbleOptions |
displayLevel(int level)
设置显示级别(0:不参与避让 1:避让级别最高 数字越大 避让级别越低)
|
Drawable[] |
getBackground()
获取背景图片
|
java.lang.String |
getContent()
获取气泡显示的内容
|
View |
getContentView()
获取内容控件
|
int |
getDisplayLevel()
获取显示级别
|
Marker |
getMarker()
获取气泡对应的marker
|
float |
getMarkerAnchorU()
获取气泡所属marker沿x轴的锚点
|
float |
getMarkerAnchorV()
获取气泡所属marker沿y轴的锚点
|
int |
getMarkerHeight()
获取气泡所属marker的高
|
int |
getMarkerWidth()
获取气泡所属marker的宽
|
boolean |
getOnTapHidden()
该气泡点击底图区域是否隐藏
|
LatLng |
getPosition()
获取气泡的经纬度坐标(该坐标是气泡对应marker的坐标)
|
BubbleOptions |
marker(Marker marker)
设置气泡对应的marker
|
BubbleOptions |
markerAnchor(float anchorU,
float anchorV)
设置气泡相对于marker沿x、y轴的偏移量
|
BubbleOptions |
markerSize(int width,
int height)
设置气泡所属marker的宽、高
|
BubbleOptions |
position(LatLng position)
设置气泡的经纬度坐标(该坐标是气泡对应marker的坐标)
|
BubbleOptions |
setOnTapHidden(boolean hidden)
设置点击底图区域是否隐藏
|
public BubbleOptions marker(Marker marker)
marker
- public Marker getMarker()
public BubbleOptions markerSize(int width, int height)
width
- height
- public int getMarkerWidth()
public int getMarkerHeight()
public BubbleOptions markerAnchor(float anchorU, float anchorV)
anchorU
- anchorV
- public float getMarkerAnchorU()
public float getMarkerAnchorV()
public BubbleOptions content(java.lang.String content)
content
- public java.lang.String getContent()
public BubbleOptions position(LatLng position)
position
- public LatLng getPosition()
public BubbleOptions displayLevel(int level)
level
- public int getDisplayLevel()
public BubbleOptions contentView(View view)
view
- public View getContentView()
public BubbleOptions background(Drawable[] background)
background
- public BubbleOptions background(Bitmap[] background)
background
- public Drawable[] getBackground()
public BubbleOptions setOnTapHidden(boolean hidden)
hidden
- true 气泡隐藏;false气泡不隐藏;默认为不隐藏public boolean getOnTapHidden()