Comments (12)
@Petterpx 大佬,你用我的布局试试。一定复现。
事件拦截这边的逻辑有问题,晚点会进行调整。感谢反馈
from floatingx.
@Petterpx 大佬,你用我的布局试试。一定复现。
尝试下1.1.0或者最新main分支,已修复。
from floatingx.
我用1.0.7测试的,设置点击事件确实没有回调!我用源码依赖也是一样的问题。不知道哪里出了问题。 我这里打了断点确实没有走。
我这边没有发现这个问题,测试点击是没有问题的。你看看还有其他地方操作浮窗吗?
from floatingx.
你的代码确实有问题的,你可以检查一下。 按照你的demo是没有问题。因为你的demo是new的textview添加进去的。我测试的是用layout添加进去的。
如果只使用setLayout是一定有问题的。你可以测试一下。这一定是一个bug。
from floatingx.
你的代码确实有问题的,你可以检查一下。 按照你的demo是没有问题。因为你的demo是new的textview添加进去的。我测试的是用layout添加进去的。 如果只使用setLayout是一定有问题的。你可以测试一下。这一定是一个bug。
本地测试过了,通过setLayout(layoutId) 这种方式没问题。你可以试试 test_click_listener 分支,已经将测试代码加入
from floatingx.
你的代码确实有问题的,你可以检查一下。 按照你的demo是没有问题。因为你的demo是new的textview添加进去的。我测试的是用layout添加进去的。 如果只使用setLayout是一定有问题的。你可以测试一下。这一定是一个bug。
本地测试过了,通过setLayout(layoutId) 这种方式没问题。你可以试试 test_click_listener 分支,已经将测试代码加入
这太邪乎了。我用你demo的setLayoutView的方式,new了一个textview加进去就可以点击。只要使用setLayout传入布局id就一定不能点击。不知道咋回事。你本地测试竟然没有问题? 这个不太科学啊。你不会两个都set了吧,后面一个就覆盖了前面一个了。
from floatingx.
你的代码确实有问题的,你可以检查一下。 按照你的demo是没有问题。因为你的demo是new的textview添加进去的。我测试的是用layout添加进去的。 如果只使用setLayout是一定有问题的。你可以测试一下。这一定是一个bug。
本地测试过了,通过setLayout(layoutId) 这种方式没问题。你可以试试 test_click_listener 分支,已经将测试代码加入
这太邪乎了。我用你demo的setLayoutView的方式,new了一个textview加进去就可以点击。只要使用setLayout传入布局id就一定不能点击。不知道咋回事。你本地测试竟然没有问题? 这个不太科学啊。你不会两个都set了吧,后面一个就覆盖了前面一个了。
你可以本地试试我的分支,结果就会得知
from floatingx.
大佬,我找到问题了, 用我的布局试试!
你把item_floating.xml换成这个布局。试试。换成你的布局就可以。我用自己的布局就不可以。你这个是有指定布局控件一定是cardview才有点击事件吗? 我把你的布局放到我的代码里面完全没有问题。 换成自己的点击事件无效。 你可以自己测试一下。
from floatingx.
大佬,我找到问题了, 用我的布局试试!
你把item_floating.xml换成这个布局。试试。换成你的布局就可以。我用自己的布局就不可以。你这个是有指定布局控件一定是cardview才有点击事件吗? 我把你的布局放到我的代码里面完全没有问题。 换成自己的点击事件无效。 你可以自己测试一下。
from floatingx.
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@android:color/transparent" android:gravity="center" android:orientation="vertical" > <Button android:text="收起" android:textStyle="bold" android:textColor="@color/white" android:id="@+id/floatBall" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="#ff0000" android:textSize="14sp" /> </LinearLayout>
这是我的布局, button是无法点击的是吧?
from floatingx.
@Petterpx 大佬,你用我的布局试试。一定复现。
from floatingx.
@Petterpx 大佬,你用我的布局试试。一定复现。
复现了,正在排查
from floatingx.
Related Issues (20)
- 初始化位置不生效 HOT 2
- 全局悬浮窗内嵌 Rv,在当前 Activity 上方无法显示 HOT 6
- 触摸透传 HOT 4
- java.lang.IllegalArgumentException HOT 5
- 有没有考虑增加半隐藏功能? HOT 2
- 有没有考虑用 Java 17 来编译 HOT 2
- 找不到可以吸附上下方的方法,每次都是吸附左右 HOT 2
- 建议把包发布到 MavenCentral HOT 3
- 如何更新视图数据
- 当使用viewpager+fragment,其中一个fragment为h5页面,悬浮窗与veiewpager的滑动会冲突 HOT 3
- 是否可以在锁屏界面上显示悬浮窗? HOT 2
- show方法没了? HOT 3
- 发现一个bug HOT 3
- 多进程页面失效 HOT 3
- 悬浮窗布局中如果设置了布局中View的点击事件,当点击某个View后拖动悬浮窗会出现跳动 HOT 4
- 希望能开放查询所有显示的浮窗的接口 HOT 7
- 可以局部在ConstraintLayout 展示吗? HOT 3
- FxLocationHelper 中有个错误 HOT 1
- 全局浮窗内用recyclerView无法滑动 HOT 1
- 全局浮窗内用recyclerView无法滑动 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 floatingx.