xujiaji / HappyBubble

:thought_balloon:BubbleLayout随意变化的气泡布局、消息对话框,可定制颜色,背景、弧度、尖角弧度、边框等等。BubbleDialog气泡弹窗根据点击View的位置定位它的弹窗位置,BubbleDialog可定制方向等!(BubbleLayout changes freely,BubbleDialog click on the location of View positioning its location,BubbleDialog can be customized directions.)
Apache License 2.0
714 stars 113 forks source link

自定义布局时,如何设置边距 #18

Closed protectedMan closed 3 years ago

protectedMan commented 5 years ago

image 气泡区域好像有一个padding

xujiaji commented 5 years ago

O__O "…没有提供设置边距的接口,目前只有xml属性bubblePadding设置BubbleLayout的方式

    <com.xujiaji.happybubble.BubbleLayout
        android:id="@+id/bubbleLayout"
        android:layout_width="match_parent"
        android:layout_height="200dp"
        android:layout_margin="16dp"
        app:bubblePadding="8dp"
        app:lookAt="left"
        app:lookLength="16dp"
        app:lookPosition="20dp"
        app:lookWidth="16dp" />
protectedMan commented 5 years ago

好吧,文档不怎么完善,好多方法和属性都没有注释,这边建议完善一下呢亲。

xujiaji commented 5 years ago

确实不完善,话说,这些属性在文档最后面都有说明的哦!