Highlight icon indicating copy to clipboard operation
Highlight copied to clipboard

OnBottomPosCallback关于距离底部的问题

Open yanftch opened this issue 9 years ago • 2 comments

我在测试中使用的是OnBottomPosCallback,自定义添加了一个margin_left以适应让图片居左的固定距离,但是设置完成之后,发现在魅族等有虚拟按键的手机上,容易出现图片被虚拟按键栏盖住,,,,也就是在getPosition(float rightMargin, float bottomMargin, RectF rectF, HighLight.MarginInfo marginInfo)这个方法中,marginInfo.leftMargin = leftMargin; marginInfo.topMargin = rectF.top + rectF.height() + offset;默认的是使用的topMargin来设置我要显示的图片和透明区的距离,那么就导致我下边的图片被虚拟按键栏挡住了。。。。。。。。。这个该怎么解决,,,,求解。。。

yanftch avatar Nov 18 '16 02:11 yanftch

虚拟按键是系统的 肯定是在最顶层 建议你手动隐藏虚拟按键或是使用OnTopPosCallback

isanwenyu avatar Nov 18 '16 03:11 isanwenyu

嗯, 但是产品姐姐就是让放下边。。唉,,,只能使用小图处理了。。。。

yanftch avatar Nov 18 '16 04:11 yanftch