方法如下:在程序中加入//remove title 的那部分代码即可实现。
package cn.edu.pku; import android.app.Activity; import android.os.Bundle; import android.view.Window; import android.view.WindowManager; public class FrameLayoutActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // remove title requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); setContentView(R.layout.main); }}