New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
箭头位置在列表中设置无效 #43
Comments
显示出来是什么样的呢 |
就是设置不设置没效果,如果view在中间,箭头就是居中的,如果在左边,箭头的位置在view的1/2处 |
更新版本到: |
1.2.6更乱了 |
就是我把tv宽高写80dp,我设置 bl.setLookPosition(Util.dpToPx(this, 10));没效果,箭头还是居中 |
BubbleLayout提供的布局,用了BubbleDialog会自动调整到对齐到被点击的view中间。 |
可以单独使用BubbleLayout |
好我去试试 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
箭头位置在列表中设置无效;
BubbleLayout bl = new BubbleLayout(this);
bl.setLookPosition(Util.dpToPx(this, 10));
bl.setBubbleColor(Color.YELLOW);
bl.setShadowColor(Color.RED);
bl.setLookLength(Util.dpToPx(this, 18));
bl.setLookWidth(Util.dpToPx(this, 24));
bubbleDialog = new BubbleDialog(SetClickedViewTestActivity.this)
.addContentView(dialogMain)
.setTransParentBackground()
.setPosition(BubbleDialog.Position.TOP)
.setRelativeOffset(-16)
.setBubbleLayout(bl)
.setThroughEvent(true, false);
// .autoPosition(Auto.AROUND);
The text was updated successfully, but these errors were encountered: