@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.activity_main);
}
设置了 requestWindowFeature(Window.FEATURE_NO_TITLE); 为什么布置到模拟器里Title还是存在
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.activity_main);
}
设置了 requestWindowFeature(Window.FEATURE_NO_TITLE); 为什么布置到模拟器里Title还是存在
解决方案
10
你用的是不是android studio
10
android:theme=”@style/AppTheme.NoActionBar”