有两种方法可以去除标题栏的title.

  1.在代码中实现

  在setContentView()方法之前加上这一句

requestWindowFeature(Window.FEATURE_NO_TITLE);

  2.在样式文件中实现

  点击application中的theme进入样式文件中,添加如下代码

<style name="AppTheme" parent="AppBaseTheme">
       <item name="android:windowNoTitle">true</item>
</style>

 

相关文章:

  • 2021-04-16
  • 2021-10-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-23
  • 2022-12-23
  • 2021-10-02
猜你喜欢
  • 2022-12-23
  • 2021-10-03
  • 1970-01-01
  • 2021-11-13
  • 2021-10-31
  • 2021-08-05
相关资源
相似解决方案