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.
精彩评论