子视图从父视图搬出去,不以pressing,Android的回应 [英] Child view move out from parent view and does not respond to pressing, Android

查看:195
本文介绍了子视图从父视图搬出去,不以pressing,Android的回应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

动画按钮从父布局移出后,不会响应触摸。我试图用TouchDelegate延长期的可触摸面积,但它并没有我的情况下工作。我需要它扩展(与所有孩子的家长布局),我不想改变大小的父布局。是否是可能的解决这个问题?

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

推荐答案

我用TouchDelegate父视图和检查子视图窗口的位置坐标。当存在对ParetView一个pressing,我检查,看看是否在同一个地方一个childView,如果是这样,那么移动它。

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.

这篇关于子视图从父视图搬出去,不以pressing,Android的回应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆