隐藏一个活动的标题(如您打算向用户显示状态更新时),可以使用requestWindowFeature()方法,传递Window.FEATURE_NO_TITLE常量来控制。实现如下:
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //hides the title bar requestWindowFeature(Window.FEATURE_NO_TITLE); }