Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对android开发很陌生,想删除顶部带有appName的空间,如图所示(它显示BasicCalculator的区域)。我希望能够用不同的颜色自定义它并在那里做其他事情。这是怎么做的?
谢谢
在您的 onCreate() 方法中使用此代码。
//Remove title bar this.requestWindowFeature(Window.FEATURE_NO_TITLE); //Remove notification bar this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);