如何更改BubbleView库中的箭头位置属性?

问题描述 投票:0回答:1

我正在使用这个库:

BubbleView Library

问题是:

如何以编程方式更改箭头位置属性?

我需要从左箭头位置改为右箭头位置。

请帮忙..

android android-studio
1个回答
0
投票

它们已在使用中显示

<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);
© www.soinside.com 2019 - 2024. All rights reserved.