我在androidmanifest.xml里面的application标签配置theme为notitlebar,但是现在应用的某些标签需要显示标题栏,然后我在activity里面的oncreate方法加入requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
setContentView(R.layout.thread);
this.getWindow().setTitle("hello");
上面语句后程序报错:android.util.AndroidRuntimeException: requestFeature() must be called before adding content
求助一下
setContentView(R.layout.thread);
this.getWindow().setTitle("hello");
上面语句后程序报错:android.util.AndroidRuntimeException: requestFeature() must be called before adding content
求助一下
解决方案 »
- android 2.2如何完全退出程序??
- 请教,如何从onPause到onResume
- Environment.getExternalStorageDirectory().canWrite()返回false无法解决
- 关于android中gps定位的问题
- 自学安卓是否只要用模拟器调试就行了?
- 求助!!用sax 解析标签全为string的xml
- Android 視訊 RTSP URL
- 请教下android布局的问题
- 全志的Android4.4如何获取root权限?
- 请问如何使用LocationDisplayManager获取当前经纬度?
- 自定义的View怎么控制View的高度
- android 相对布局问题
this.getWindow().setTitle("hello");
setContentView(R.layout.thread);