Git Product home page Git Product logo

Comments (4)

Gennki avatar Gennki commented on May 20, 2024

补充,目前我在两次创建悬浮窗之间临时加了一秒延时,可以解决这个问题

from easyfloat.

princekin-f avatar princekin-f commented on May 20, 2024

你好,同时创建多个系统浮窗,确实会存在该问题。

  • 可以在startService的时候,通过Intent传递config,这样可以确保config的不同;
  • 但是部分数据需要自行实现序列化,而且序列化、反序列化都是耗时的;
  • 针对你这种需求,还是建议设置延时创建,或者在OnFloatCallbacks拿到回调结果再创建。

from easyfloat.

DamonChen117 avatar DamonChen117 commented on May 20, 2024

我试了下延时也不能显示2个。
这个问题可以reopen,正式解决下吗?

from easyfloat.

MachineHou avatar MachineHou commented on May 20, 2024

我的解决方案
1、 .setTag(tag)---- 注(tag是通过随机数标注,判断每次的tag如果重复就使用 EasyFloat.dismiss(tag, true);关闭掉前一个EasyFloat),这样就不会出现重复的了也不会包,或者你想重复创建多个系统悬浮窗页可以使用此方法做一个延迟处理就可以,-----我这一步主要解决的是关掉多个tag的问题

from easyfloat.

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.