public class BubbleLayout
extends LinearLayout
Modifier and Type | Field and Description |
---|---|
static float |
DEFAULT_STROKE_WIDTH |
Constructor and Description |
---|
BubbleLayout(Context context)
Creates an instance of bubble layout.
|
BubbleLayout(Context context,
AttributeSet attrs)
Creates an instance of bubble layout.
|
BubbleLayout(Context context,
AttributeSet attrs,
int defStyleAttr)
Creates an instance of bubble layout.
|
Modifier and Type | Method and Description |
---|---|
protected void |
dispatchDraw(Canvas canvas) |
com.mapbox.mapboxsdk.annotations.ArrowDirection |
getArrowDirection()
Get the arrow direction.
|
float |
getArrowHeight()
Get the arrow height
|
float |
getArrowPosition()
Get the arrow position.
|
float |
getArrowWidth()
Get the arrow width.
|
int |
getBubbleColor()
Get the bubble color.
|
float |
getCornersRadius()
Get the corner radius
|
int |
getStrokeColor()
Get the stroke color.
|
float |
getStrokeWidth()
Get stroke width.
|
protected void |
onLayout(boolean changed,
int left,
int top,
int right,
int bottom) |
BubbleLayout |
setArrowDirection(com.mapbox.mapboxsdk.annotations.ArrowDirection arrowDirection)
Set the arrow direction.
|
BubbleLayout |
setArrowHeight(float arrowHeight)
Set the arrow height.
|
BubbleLayout |
setArrowPosition(float arrowPosition)
Get the arrow position.
|
BubbleLayout |
setArrowWidth(float arrowWidth)
Set the arrow width.
|
BubbleLayout |
setBubbleColor(int bubbleColor)
Set the bubble color.
|
BubbleLayout |
setCornersRadius(float cornersRadius)
Set the corner radius
|
BubbleLayout |
setStrokeColor(int strokeColor)
Set the stroke color.
|
BubbleLayout |
setStrokeWidth(float strokeWidth)
Set the stroke width.
|
public static final float DEFAULT_STROKE_WIDTH
public BubbleLayout(Context context)
context
- The context used to inflate this bubble layoutpublic BubbleLayout(Context context, AttributeSet attrs)
context
- The context used to inflate this bubble layoutattrs
- The attribute set to initialise this bubble layout frompublic BubbleLayout(Context context, AttributeSet attrs, int defStyleAttr)
context
- The context used to inflate this bubble layoutattrs
- The attribute set to initialise this bubble layout fromdefStyleAttr
- The default style to apply this bubble layout withprotected void onLayout(boolean changed, int left, int top, int right, int bottom)
protected void dispatchDraw(Canvas canvas)
public com.mapbox.mapboxsdk.annotations.ArrowDirection getArrowDirection()
public BubbleLayout setArrowDirection(com.mapbox.mapboxsdk.annotations.ArrowDirection arrowDirection)
arrowDirection
- The direction of the arrowpublic float getArrowWidth()
public BubbleLayout setArrowWidth(float arrowWidth)
arrowWidth
- The width of the arrowpublic float getArrowHeight()
public BubbleLayout setArrowHeight(float arrowHeight)
arrowHeight
- The height of the arrowpublic float getArrowPosition()
public BubbleLayout setArrowPosition(float arrowPosition)
arrowPosition
- The arrow positionpublic float getCornersRadius()
public BubbleLayout setCornersRadius(float cornersRadius)
cornersRadius
- The corner radiuspublic int getBubbleColor()
public BubbleLayout setBubbleColor(int bubbleColor)
bubbleColor
- The buble colorpublic float getStrokeWidth()
public BubbleLayout setStrokeWidth(float strokeWidth)
strokeWidth
- The stroke widthpublic int getStrokeColor()
public BubbleLayout setStrokeColor(int strokeColor)
strokeColor
- The stroke color© 2015–2018 Mapbox. All rights reserved.