Android知识点随笔

隐藏标题栏的三种方法

  1. 在Activity中使用
getSupportActionBar().hide();
  1. 修改AndroidMainfest.xml文件中的属性
 android:theme="@style/AppTheme"
  1. 修改res/values/styles.xml文件中的属性
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">

猜你喜欢

转载自blog.csdn.net/HuangGang_clown/article/details/83473940