机器人:windowNoTitle不会隐藏动作条与appcompat-V7 21.0.0 [英] android:windowNoTitle will not hide actionbar with appcompat-v7 21.0.0

查看:268
本文介绍了机器人:windowNoTitle不会隐藏动作条与appcompat-V7 21.0.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我更新appcompat-V7棒棒糖版(21.0.0)

I updated appcompat-v7 to lollipop version(21.0.0)

那么我不能隐藏动作条与下面的工作之前的风格。

then I can't hide ActionBar with following style that worked before.

<style name="AppTheme.NoActionBar">
    <item name="android:windowActionBar">false</item>
    <item name="android:windowNoTitle">true</item>
</style>

我将它设置为特定的活动。

I set it to specific activity.

<activity android:name=".NoActionBarActivity"
        android:theme="@style/AppTheme.NoActionBar"/>

当我使用appcompat-V7 20.0.0版本,动作条将被隐藏,因为它的目的。

When I use appcompat-v7 20.0.0 version, actionbar will be hidden as it is intended.

如何隐藏动作条带有自定义样式 AppCompat 21版库?

How can I hide actionbar with custom style with AppCompat version 21 library?

推荐答案

@ Chk0nDanger 你的答案是正确的,但是,你应该使用下面code:

@Chk0nDanger your answer is true but you should use below code :

<style name="Theme.AppCompat.NoActionBar" parent="Theme.AppCompat.Light">
   <item name="windowActionBar">false</item>
   <item name="android:windowNoTitle">true</item>
</style> 

无父元素,一切都将是白色( textviews 按钮 chekcboxs 等)!

的manifest.xml 文件:

    <activity android:name=".MyClass"
        android:theme="@style/Theme.AppCompat.NoActionBar"
        />

更新2015年7月29日

确认安卓windowNoTitle windowNoTitle 替换时升级到 AppCompat V22 .1.0

这篇关于机器人:windowNoTitle不会隐藏动作条与appcompat-V7 21.0.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆