它们已在使用中显示
<com.github.library.bubbleview.BubbleTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello BubbleTextVew"
android:padding="10dp"
android:textColor="@android:color/white"
app:arrowWidth="8dp"
app:angle="8dp"
app:arrowHeight="10dp"
app:arrowPosition="14dp"
app:arrowLocation="right"
app:arrowCenter="true"
app:bubbleColor="#7EC0EE"/>
app:arrowLocation
支持left right top bottom
app:arrowCenter
将使arrow center
处于边缘
更新:
如果您想以编程方式设置箭头,请使用this dependency代替您的。
在这里你可以在下面改变你想要的箭头位置。
bubbleLayout.setArrowDirection(ArrowDirection.TOP);