Child view move out from parent view and does not respond to pressing, Android

穿精又带淫゛_ 提交于 2019-12-24 22:25:32

问题


After animation button moves out from parent layout and does not respond to touch. I tried to use TouchDelegate for extending a view's touchable area, but it did not work in my case. I need it to scale (parent layout with all childs), and I do not want to change the size parent layout. Whether it is possible to solve this problem?

thear scheme of problem


回答1:


I use TouchDelegate for Parent view and check window location coordinate for child views. When there is a pressing on the ParetView, I check to see if in the same place a childView, and if so, then move it.



来源:https://stackoverflow.com/questions/25066667/child-view-move-out-from-parent-view-and-does-not-respond-to-pressing-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!