Project "heal your body"
Today, we found that none of the button click events can respond, and even the touch event is gone. Alas, it's painful,
Logcat prompt:
09-05 15:12:47. 229: Warn/windowmanager (59 ):No window to dispatch pointer action 0
09-05 15:12:47. 343: Warn/windowmanager (59 ):No window to dispatch pointer Action 1
Solution:
Http://www.eoeandroid.com/thread-52726-1-1.html
Originally in baseactivity:
Requestwindowfeature (window. feature_no_title );
Getwindow (). setflags (windowmanager. layoutparams. type_status_bar, windowmanager. layoutparams. type_status_bar); // the crux of the problem
After a special flag is set for window, if the flag value is too large, the touch screen will lose clickable.
Windowmanager. layoutparams. type_status_barThe value is 2000.
It must be changed to less than 1024 :(Windowmanager. layoutparams. flag_fullscreenThe value is 1024)
Getwindow (). setflags (windowmanager. layoutparams. flag_fullscreen, windowmanager. layoutparams. flag_fullscreen );
The full screen display is also implemented, but the touch event will not disappear.