-
Notifications
You must be signed in to change notification settings - Fork 758
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
滑动scrollview时会改变list_item控件的状态(会从normal改为pressed),导致出现类似点击list_item控件一样的效果。 #847
Comments
我这边也是一样的控件布局,滑动的起始位置要在edit控件范围里面就会变成点击事件。同样的,滑动的起始位置所在的item的状态也会改变(会从normal改为pressed),给人一种点击的效果。 |
你给一个测试例子看看?我上面那个是用最新的 awstudio 来简单做的例子来的,如果鼠标点击到 edit 的话,理论上是拖拽不了的。 |
如果点中 edit 控件的话,是无法滑动的啊,所以我还是不太明白你的问题是什么? |
安卓的话即使在edit控件上滑动也不会出现变成点击edit控件的情况,awtk是设计如此吗 |
在安卓的情况和 pc 的是一样的阿,我附上测试视频和测试 apk,都是用最新的 awtk 编译出来的。 video.mp4 |
你视频里的第11秒开始的滑动(在edit控件范围内开始滑动)就是我说的问题,要怎么避免滑动变点击的情况发生呢 |
上面也说过了,edit 获取焦点后是无法滑动的,gui 的滚动控件基本都是这种逻辑的,在 11s 的时候,我是故意点中 edit 让其获得焦点的,这个时候滚动控件就是不能滚动的,要不然 edit 的位置突变,用户可能就无法输入了,我不知道你在哪里看到这种选中了 edit 还可以滚动的效果,你可以给出例子吗? |
控件结构如下(后一个是前一个的子控件):
list_view
scroll_view
list_item
edit
当滑动列表时,会改变item的状态为pressed;当 list_item里面有edit子控件时,滑动会变成点击edit的效果。怎么避免这种情况的发生。
The text was updated successfully, but these errors were encountered: