BubbleLayout
Bubble View for Android with custom stroke width and color, arrow size, position and direction.
BubbleLayout Extends the FrameLayout.
Gradle
Add the dependency to your build.gradle.
dependencies {
compile 'com.daasuu:BubbleLayout:1.2.0'
}
Basic Usage
Include the BubbleLayout widget in your layout.
Attributes
There are several attributes you can set:
attr | description |
---|---|
bl_arrowWidth | Width of the arrow, default 8dp |
bl_arrowHeight | Height of the arrow, default 8dp |
bl_arrowPosition | Position of the arrow, default 12dp |
bl_cornersRadius | Corner radius of the BubbleLayout, default 0dp |
bl_bubbleColor | Color of the BubbleLayout, default WHITE |
bl_strokeWidth | Width of the stroke, default 0dp |
bl_strokeColor | Color of the stroke, default GLAY |
bl_arrowDirection | Drawing position of the arrow : 'left' or 'top' or 'right' or 'bottom' or 'left_center' or 'top_center' or 'right_center' or 'bottom_center' default 'left' |
Samples
layout_sample_popup.xml