Comments (2)
你好,首先感谢反馈!
针对问题1:
setSidePattern(SidePattern.TOP)
是设置浮窗始终吸附顶部的意思,意思说只能在顶部的左右拖动;- 而你设置了宽度
MatchParent
,所以就会出现左右也无法拖动的情况; - 如果想要支持拖拽到屏幕外部,就需要修改相关代码了。
针对问题2:测试了一下,确实出现你所说的问题。
- 我这边是这样处理的,将
stopService
进行延迟执行:
/**
* 关闭浮窗后,检测是否需要关闭Service
*/
fun checkStop(context: Context, floatTag: String?) {
// 先清除当条浮窗信息
if (floatMap.isNotEmpty()) floatMap.remove(floatTag)
// 如有没有其他浮窗存在,延迟关闭Service
if (floatMap.isEmpty()) {
Handler(Looper.getMainLooper()).postDelayed({
if (floatMap.isEmpty()) {
context.stopService(Intent(context, FloatService::class.java))
}
}, 500)
}
}
再次感谢你的反馈···
from easyfloat.
感谢解惑(* ̄︶ ̄)
from easyfloat.
Related Issues (20)
- 调用setBorder右边的边界值无效
- 添加依赖后没有EasyFloat类
- 悬浮窗内添加ListView后ListView无法上下滑动
- 会挡住输入法 可以怎么解决吗?
- 希望可以自己配置WindowManager.LayoutParams.flags ,需要不拦截遮挡底部的点击事件
- 浮窗中的EditText无法弹起软键盘
- 请问只想要在部分页面展示悬浮窗应该怎么设置?
- ParentFrameLayout not attached to window manager
- 长按EditText中的文字,无法弹出复制剪切的ContextMenu HOT 1
- FloatingWindowHelper中设置config.layoutView和config.layoutId处理逻辑不一致,导致在使用setFilter时需要手动显示view
- 错误: 程序包com.lzf.easyfloat.widget.activityfloat不存在
- This feature requires ASM6
- 内存泄露 HOT 1
- 多进程应用使用会出现 Only the original thread that created a view hierarchy can touch its views HOT 1
- 嵌套recyclerView并开启拖动,会导致recyclerView本身滑动失效 HOT 1
- 通过发通知方式通知另外一个Activity显示浮窗,设置的偏移量失效
- EasyFloat.with(activity)建议
- 你好,悬浮窗其中自带的申请浮窗权限,自动处理回调结果失效 HOT 1
- 建议添加图层优先级显示设置
- 横向模式下面、沉浸模式,吸附模式无法吸附到上方
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easyfloat.