取消标题方法:(在application中设置属性) android:theme="@android:style/Theme.Light.NoTitleBar" ????2. ? 在Activity中增加: this.requestWindowFeature(Window.FEATURE_NO_TITLE); 但是问题来了,两...
分类:
移动开发 时间:
2015-11-11 10:10:22
阅读次数:
232
1.super.onCreate(savedInstanceState)方法之前调用: setTheme(android.R.style.Theme_Light_NoTitleBar_Fullscreen); 2.setContentView(R.layout.xxx)之前调用: requestWi...
分类:
其他好文 时间:
2015-10-29 13:00:26
阅读次数:
287
隐藏标题栏需要使用预定义样式:android:theme=”@android:style/Theme.NoTitleBar”.隐藏状态栏:android:theme=”@android:style/Theme.NoTitleBar.Fullscreen”.
分类:
移动开发 时间:
2015-09-17 17:27:51
阅读次数:
152
在清单中设置application的属性android:theme="@android:style/Theme.NoTitleBar"
分类:
移动开发 时间:
2015-07-31 18:01:56
阅读次数:
131
前言在使用 ActionBar的时候,有时候会爆出空指针异常,这是因为应用没有获取到 ActionBar 导致的,而导致应用没有获取到 ActionBar 的原因比较多,所以我们下面就来总结一下 ActionBar 获取不到的错误原因。解决办法
检查你的应用是否设置了没有 ActionBar 的主题Theme,或者直接设置了 NoActionBar或NoTitleBar 属性,主要要检查这几点:检查...
分类:
移动开发 时间:
2015-07-28 16:03:52
阅读次数:
149
隐藏标题栏需要使用预定义样式:android:theme=”@android:style/Theme.NoTitleBar”. 隐藏状态栏:android:theme=”@android:style/Theme.NoTitleBar.Fullscreen”. ...
分类:
移动开发 时间:
2015-07-15 14:50:34
阅读次数:
117
在安卓的activity创建的时候一般会有台头就是label首先是如何去掉的问题。
例如红色框框中的这个就是自带的label。
有两种方法:
一在mainfest的application标签中添加android:theme"@android:style/Theme.NoTitleBar"。这是第一个。
二就是在每一个。java文件的oncreate的开头添加
this.request...
分类:
移动开发 时间:
2015-07-13 14:08:11
阅读次数:
179
自定义style 继承Theme.Translucent.NoTitleBar 在配置文件中给activity设置这个theme,可以解决有时候会突然看到桌面的问题。
分类:
其他好文 时间:
2015-07-02 19:12:03
阅读次数:
167
android:theme="@android:style/Theme.Dialog" 将一个Activity显示为能话框模式android:theme="@android:style/Theme.NoTitleBar" 不显示应用程序标题栏android:theme="@android:style...
分类:
移动开发 时间:
2015-05-11 19:52:48
阅读次数:
150
AndroidMainfest.xml:
android:theme="@android:style/Theme.NoTitleBar"
分类:
移动开发 时间:
2015-04-23 15:55:33
阅读次数:
306