Comments (1)
if (EasyFloat.isShow(EASY_FLOAT_TAG)) {
EasyFloat.dismiss(EASY_FLOAT_TAG)
}
EasyFloat.with(MyApplication.instance)
.setShowPattern(ShowPattern.ALL_TIME)
.setLayout(R.layout.view_float_receive)
// 设置吸附方式,共15种模式,详情参考SidePattern
.setSidePattern(SidePattern.RESULT_TOP)
// 设置浮窗的标签,用于区分多个浮窗
.setTag(EASY_FLOAT_TAG)
.setGravity(Gravity.CENTER_HORIZONTAL)
// 设置浮窗是否可拖拽
.setDragEnable(false)
.registerCallback
EasyFloat.with是Application,ShowPattern.ALL_TIME一直显示(不分前后台)
else Builder(LifecycleUtils.getTopActivity() ?: activity) mTopActivity有可能是之前页面被销毁activity,是不是会导致这个这问题?
from easyfloat.
Related Issues (20)
- 浮窗中的EditText无法弹起软键盘 HOT 2
- 请问只想要在部分页面展示悬浮窗应该怎么设置?
- 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
- 嵌套recyclerView并开启拖动,会导致recyclerView本身滑动失效 HOT 1
- 通过发通知方式通知另外一个Activity显示浮窗,设置的偏移量失效
- EasyFloat.with(activity)建议
- 你好,悬浮窗其中自带的申请浮窗权限,自动处理回调结果失效 HOT 1
- 建议添加图层优先级显示设置
- 横向模式下面、沉浸模式,吸附模式无法吸附到上方
- 拖拽结束后如何获取当前悬浮窗在屏幕上的坐标
- Android 14 调用hide出现问题
- 你好,作者,可以支持自定义回调接口吗,需要实时更新ui HOT 2
- 此项目作者长期未更新,由于项目需要fork了一份修改,如有需求可关注
- 请问有没考虑支持RN
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.