public class MainActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //设置窗口特性为自定义标题 requestWindowFeature(Window.FEATURE_CUSTOM_T…