开发者

android detecting touch event in a layout with many children

I have a linearlayout with a header view followed by a listview and another view (say view A) below the list. I want to toggle the visibility if View A when either the header or the list is touched. For this I had set an onTouchListener on the linearLayout but the on touch method doesnot se开发者_运维问答em to be called


You most likely want to have an overriding onTouchEvent(MotionEvent) method in your activity.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜