1.ActionBar
一、隐藏标题栏的3种方法
1)在MainActivity.java中设置标题栏隐藏掉
ActionBar actionBar=getSupportActionBar();
actionBar.hide();
2)在MainActivity.java中设置
getSupportActionBar().hide();//隐藏标题栏
3)在Mainfast.xml配置文件中做修改
android:theme="@style/AppTheme"
修改为:
android:theme="@style/Theme.AppCompat.Light.NoActionBar"