requestWindowFeature 用法

    没看API,就查了下网上的资料,原来requestWindowFeature 是用来设置全屏的。

       在Activity中

        this.requestWindowFeature(Window.FEATURE_NO_TITLE);

        getWindow.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,

                 WindowManager.LayoutParams.FLAG_FULLSCREEN);

 

       在J2ME中仅仅需要setFullScreenMode(true); 就可以了

http://hi.baidu.com/jobenc/item/962cb9e54c6e843a4ddcafbe

猜你喜欢

转载自284772894.iteye.com/blog/1736071