Code Monkey home page Code Monkey logo

Comments (7)

xujiaji avatar xujiaji commented on June 10, 2024

可以看一下你显示bubbledialog这部分的代码吗?

from happybubble.

HH-Ding avatar HH-Ding commented on June 10, 2024

依附问题我已解决,是setClickedView传值问题,但全屏闪烁还是在。
if (mToastDialog == null) {//初始化
mAuto = Auto.UP_AND_DOWN;
mToastDialog = new CustomBubbleDialog(context)
.setRelativeOffset(-36)
.setTransParentBackground()
.autoPosition(mAuto);
}

显示:
holder.rolebtn.setOnTouchListener(new View.OnTouchListener() {
@OverRide
public boolean onTouch(View v, MotionEvent event) {
if (event.getAction() == MotionEvent.ACTION_UP) {
JYSLLogUtil.d("SDK", "松开,角色信息气泡框消失");
if (mToastDialog.isShowing()) {
mToastDialog.dismiss();
}
}
if (event.getAction() == MotionEvent.ACTION_DOWN) {
JYSLLogUtil.d("SDK", "登录框下拉里点击角色信息" + v.getId());
if (mToastDialog == null) {
JYSLLogUtil.d("SDK", "mToastDialog = null");
mAuto = Auto.UP_AND_DOWN;
mToastDialog = new CustomBubbleDialog(context)
.setTransParentBackground()
.autoPosition(mAuto);
}
if (!mToastDialog.isShowing()) {
JYSLLogUtil.d("SDK", "登录框下拉里点击角色信息 isShowing");
mToastDialog.setClickedView(v);
mToastDialog.setListIndex(v.getId());
mToastDialog.show();
}
}
return false;
}
});

from happybubble.

xujiaji avatar xujiaji commented on June 10, 2024

你在show()那里打一下log看看有没有重复了显示呢?如果没有那我的回去看一看代码

from happybubble.

HH-Ding avatar HH-Ding commented on June 10, 2024

没有重复,长按的时候,isShow()下的只执行了一次

from happybubble.

xujiaji avatar xujiaji commented on June 10, 2024

好的,不过要下午或者晚上来看看了

from happybubble.

xujiaji avatar xujiaji commented on June 10, 2024

还有怎么个闪法?可以截几张图看看吗

from happybubble.

xujiaji avatar xujiaji commented on June 10, 2024

方便的话加一下我的QQ吧!
624719201

from happybubble.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.