BubbleTextView
BubbleTextView
Snapshot
Custom Attribute
<declare-styleable name="LeBubbleTextView">
<!-- Corner radius for LeBubbleTextView. -->
<attr name="bubbleCornerRadius" format="dimension"/>
<!-- Background color for LeBubbleTextView. -->
<attr name="bubbleBackgroundColor" format="color"/>
<!-- text size for LeBubbleTextView. -->
<attr name="bubbleTextSize" format="dimension"/>
<!-- text color for LeBubbleTextView. -->
<attr name="bubbleTextColor" format="color"/>
<!-- text for LeBubbleTextView. -->
<attr name="bubbleText" format="string"/>
<!-- direction for arrow. -->
<attr name="bubbleArrowDirection">
<enum name="left" value="1"/>
<enum name="top" value="2"/>
<enum name="right" value="3"/>
<enum name="bottom" value="4"/>
</attr>
<!-- direction for arrow. -->
<attr name = "relativePosition" format = "fraction" />
</declare-styleable>