我有个问题。我希望自定义我的TitleBar,当我尝试使用这个方法时:
requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE,R.layout.mytitle);
但是当我在我的TabBar的意图时,他崩溃了。
他在我的主要活动中工作,我认为tabBar的目的是定制titleBar有一种不同的方法。
有人知道怎么做的吗?
我是个讨饭的机器人开发者。
谢谢!
发布于 2011-08-09 13:19:37
requestWindowFeature(Window.FEATURE_CUSTOM_TITLE);
getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.mytitle);将setContentLayout()放在这两个中间。
https://stackoverflow.com/questions/4705476
复制相似问题