junixapp/XPopup

BubbleAttachPopupView箭头偏移无法设置

BreezeAndMoon opened this issue · 0 comments

XPopup版本
如2.9.19

描述你的问题
之前的demo中还有setArrowOffset方法设置箭头偏移,现在版本找不到了,希望能加上
new XPopup.Builder(getContext())
.isCenterHorizontal(true)//可以居中,不过不满足需求,设为false就居左了,更不好看
.asCustom(new CustomBubbleAttachPopup(getContext())
// .setArrowOffset(-XPopupUtils.dp2px(getContext(), 40)) //气泡箭头偏移
.setArrowWidth(XPopupUtils.dp2px(getContext(), 5))
.setArrowHeight(XPopupUtils.dp2px(getContext(), 6))
// .setBubbleRadius(100)
.setArrowRadius(XPopupUtils.dp2px(getContext(), 3))
)
.show();