【Android(以编程方式删除标题/通知栏)】犀渠玉剑良家子,白马金羁侠少年。这篇文章主要讲述Android:以编程方式删除标题/通知栏相关的知识,希望能为你提供帮助。
There are roughly three ways to do this: programatically, through stylesheets, or through the Anroid manifest.
- public class MainActivity extends Activity {
- /** Called when the activity is first created. */
- @Override
- public void onCreate( Bundle savedInstanceState) {
- super.onCreate( savedInstanceState) ;
- setContentView( R.layout.main) ;
- //Remove title bar
- this.requestWindowFeature( Window.FEATURE_NO_TITLE) ;
- //Remove notification bar
- this.getWindow( ) .setFlags( WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN) ;
- }
- }
推荐阅读
- Android(谷歌地图标记)
- 将Apple.plist文件从XML/binary转换为
- Android简单警报
- PhoneGap项目的Android元视口标记
- 一键构建PhoneGap构建到Android
- Android检查服务是否正在运行
- 钛Appcelerator zipfile模块(适用于1.8的提取方法)
- Favicon和Apple Touch图标
- Applescript以使用特定编辑器在finder中打开选定的文件