求帮助 requestWindowFeature(Window.FEATURE_NO_TITLE); 为何没用

Android 码拜 8年前 (2016-05-05) 867次浏览
    @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还是存在
解决方案

10

你用的是不是android studio

10

android:theme=”@style/AppTheme.NoActionBar”

CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明求帮助 requestWindowFeature(Window.FEATURE_NO_TITLE); 为何没用
喜欢 (0)
[1034331897@qq.com]
分享 (0)