Google在Android4.0之后加入了Action Bar的功能。但是有时候标题栏会相当占用屏幕空间,使得内容区域变小,这里演示如何隐藏标题栏。隐藏标题栏的方法很简单,打开上节的FirstActivity,在onCreate()方法中添加如下代码:protected void onCreate...
分类:
移动开发 时间:
2015-01-19 22:37:34
阅读次数:
277
//没有标题 this.FormBorderStyle = FormBorderStyle.None; //任务栏不显示 this.ShowInTaskbar = false;
// 隐藏标题栏 requestWindowFeature(Window.FEATURE_NO_TITLE); // 隐藏状态栏 getWindow().setFlags(WindowManager.LayoutParams.FLAG_FUL...
分类:
移动开发 时间:
2014-12-25 09:48:13
阅读次数:
185
在onCreate()方法中添加如下代码:public class FirstActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.o...
分类:
移动开发 时间:
2014-12-20 19:33:13
阅读次数:
166
要让Activity的标题栏不被显示的情况分两种:
一、不显示标题栏的任何内容,但是标题栏占的区域还在。
设置办法1: 在AndroidManifest.xml文件里配置Activity的标签中加上配置 android:theme="@android:style/Theme.NoTitleBar". 该配置还可以配置在标签中,这样表示所有的Activity都默认配置了不显示标题栏
示例:...
分类:
其他好文 时间:
2014-09-19 15:41:15
阅读次数:
322
http://www.cnblogs.com/zhuguangwei/archive/2011/01/18/1938276.html一、隐藏标题栏 //隐藏标题栏 this.requestWindowFeature(Window.FEATURE_NO_TITLE);二、隐藏状态栏 //隐藏状态栏.....
分类:
移动开发 时间:
2014-08-16 19:41:30
阅读次数:
231
隐藏标题栏(窗口属性):1、设置在该窗体的标题栏中是否显示控件框:this.ControlBox = false;2、设置在该窗体的标题为空:this.Text = string.Empty;3、移动窗口:实现Form的函数WndProc #region 实现点击移动 i...
分类:
移动开发 时间:
2014-07-22 22:32:34
阅读次数:
356
去掉actionbar :getActionBar().hide();全屏方法一: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //隐去标题栏(应用程序的名字) r...
分类:
移动开发 时间:
2014-07-16 19:52:02
阅读次数:
643
Activity全屏设置方式1:AndroidManifest.xml方式2:代码实现requestWindowFeature(Window.FEATURE_NO_TITLE);//隐藏标题栏getWindow().setFlags(WindowManager.LayoutParams.FLAG_F...
分类:
移动开发 时间:
2014-05-15 10:43:09
阅读次数:
313