java - TYPE_PHONE overlay view doesn't allow child GridView to capture onItemClick event -


my applications draws overlay has gridview it's child. clicks being captured overlay veiw's ontouch event , nothing passed gridview's onitemclick event. code creates is:

layoutinflater inflater = (layoutinflater) getsystemservice(layout_inflater_service); taskbarview = inflater.inflate(r.layout.view_overlay, null); taskbarviewparams = new windowmanager.layoutparams(taskbarinactivewidth, taskbarheight,             layoutparams.type_phone,             windowmanager.layoutparams.flag_not_touch_modal |             windowmanager.layoutparams.flag_watch_outside_touch,             pixelformat.translucent); taskbarviewparams.gravity = gravity.left | gravity.top; windowmanager = (windowmanager) getsystemservice(window_service); windowmanager.addview(taskbarview, taskbarviewparams); 

note: problem comes picture on api levels 16 , up. gridview captures it's onitemclick , overlay captures it's ontouch should below api level 16.

am missing flag or something?


Comments

Popular posts from this blog

design - Custom Styling Qt Quick Controls -

Unable to remove the www from url on https using .htaccess -