@Deprecated
public class BubbleLayout
extends LinearLayout
View
, which is then turned into a Bitmap
.
After the bitmap is added to the Style
object, a
SymbolLayer
or the
Mapbox Annotation Plugin can reference the image ID.Modifier and Type | Field and Description |
---|---|
static float |
DEFAULT_STROKE_WIDTH
Deprecated.
|
Constructor and Description |
---|
BubbleLayout(Context context)
Deprecated.
Creates an instance of bubble layout.
|
BubbleLayout(Context context,
AttributeSet attrs)
Deprecated.
Creates an instance of bubble layout.
|
BubbleLayout(Context context,
AttributeSet attrs,
int defStyleAttr)
Deprecated.
Creates an instance of bubble layout.
|
Modifier and Type | Method and Description |
---|---|
protected void |
dispatchDraw(Canvas canvas)
Deprecated.
|
com.mapbox.mapboxsdk.annotations.ArrowDirection |
getArrowDirection()
Deprecated.
Get the arrow direction.
|
float |
getArrowHeight()
Deprecated.
Get the arrow height
|
float |
getArrowPosition()
Deprecated.
Get the arrow position.
|
float |
getArrowWidth()
Deprecated.
Get the arrow width.
|
int |
getBubbleColor()
Deprecated.
Get the bubble color.
|
float |
getCornersRadius()
Deprecated.
Get the corner radius
|
int |
getStrokeColor()
Deprecated.
Get the stroke color.
|
float |
getStrokeWidth()
Deprecated.
Get stroke width.
|
protected void |
onLayout(boolean changed,
int left,
int top,
int right,
int bottom)
Deprecated.
|
BubbleLayout |
setArrowDirection(com.mapbox.mapboxsdk.annotations.ArrowDirection arrowDirection)
Deprecated.
Set the arrow direction.
|
BubbleLayout |
setArrowHeight(float arrowHeight)
Deprecated.
Set the arrow height.
|
BubbleLayout |
setArrowPosition(float arrowPosition)
Deprecated.
Get the arrow position.
|
BubbleLayout |
setArrowWidth(float arrowWidth)
Deprecated.
Set the arrow width.
|
BubbleLayout |
setBubbleColor(int bubbleColor)
Deprecated.
Set the bubble color.
|
BubbleLayout |
setCornersRadius(float cornersRadius)
Deprecated.
Set the corner radius
|
BubbleLayout |
setStrokeColor(int strokeColor)
Deprecated.
Set the stroke color.
|
BubbleLayout |
setStrokeWidth(float strokeWidth)
Deprecated.
Set the stroke width.
|
public static final float DEFAULT_STROKE_WIDTH
public BubbleLayout(@NonNull Context context)
context
- The context used to inflate this bubble layoutpublic BubbleLayout(@NonNull Context context, AttributeSet attrs)
context
- The context used to inflate this bubble layoutattrs
- The attribute set to initialise this bubble layout frompublic BubbleLayout(@NonNull 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(@NonNull Canvas canvas)
public com.mapbox.mapboxsdk.annotations.ArrowDirection getArrowDirection()
@NonNull public BubbleLayout setArrowDirection(com.mapbox.mapboxsdk.annotations.ArrowDirection arrowDirection)
arrowDirection
- The direction of the arrowpublic float getArrowWidth()
@NonNull public BubbleLayout setArrowWidth(float arrowWidth)
arrowWidth
- The width of the arrowpublic float getArrowHeight()
@NonNull public BubbleLayout setArrowHeight(float arrowHeight)
arrowHeight
- The height of the arrowpublic float getArrowPosition()
@NonNull public BubbleLayout setArrowPosition(float arrowPosition)
arrowPosition
- The arrow positionpublic float getCornersRadius()
@NonNull public BubbleLayout setCornersRadius(float cornersRadius)
cornersRadius
- The corner radiuspublic int getBubbleColor()
@NonNull public BubbleLayout setBubbleColor(int bubbleColor)
bubbleColor
- The buble colorpublic float getStrokeWidth()
@NonNull public BubbleLayout setStrokeWidth(float strokeWidth)
strokeWidth
- The stroke widthpublic int getStrokeColor()
@NonNull public BubbleLayout setStrokeColor(int strokeColor)
strokeColor
- The stroke color