android - ActionBar touch events being overriden by MediaController -


i'm building app custom mediacontroller , videoview (both using 99% of original android code) display videos. when activity in landscape set actionbar (using actionbarsherlock 4.2.0) overlay videoview in youtube app.

when click video view mediacontroller alternates between visible , invisible, when it's visible can use buttons control video, if touch on actionbar item doesn't work , hides mediacontroller because intercepted touch event.

i've looked @ code of mediacontroller , realized creating window filling entire screen. fixed , set window start below action bar touch calls still being intercepted windowmanager.layoutparams.flag_not_touch_modal set on window doesn't block touch events outside (because action bar theoretically outside of mediacontroller's window).

any idea i'm doing wrong? worst case scenario have use 1 of 2 solutions this thread: remove window , use layout inflate or don't use mediacontroller @ all


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -