隐藏FloatingMenu造成Theme.AppCompat.Light.NoActionBar [英] Hide FloatingMenu caused by Theme.AppCompat.Light.NoActionBar

查看:277
本文介绍了隐藏FloatingMenu造成Theme.AppCompat.Light.NoActionBar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

慢慢的,我相信我只是转储到得到这个工作,希望
那你有人,能帮助我。

Slowly, I believe I am simply to dump to get this to work and hope that somebody of you, can help me.

我使用的是Android设计支持库,应用程序兼容性和支持libarties:

I am using the Android Design Support Library, AppCompat and support libarties:

compile "com.android.support:design:23.0.1"
compile 'com.android.support:support-v4:23.0.1'
compile 'com.android.support:appcompat-v7:23.0.1'

所有我想要的是一个简单的工具栏,Tablayout和ViewPager自己动手。
就像你可以在所有其他应用中看到了。

All I wanted was a simple Toolbar, Tablayout and a ViewPager getting to work. Like you can see in every other app, too.

但我在使用的每一次活动都得到一个恼人的 FloatingMenu
App_Theme文件。

But I am getting an annoying FloatingMenu on every activity that uses the app_theme.

在这里输入的形象描述

我如何删除这个FloatingMenu?

How do I remove this FloatingMenu?

干杯!

Douplicates:

Douplicates:

HTC从卸下一个浮动菜单按钮 [noanswer]

Remove Floating menu button from HTC one [noanswer]

推荐答案

好多人都面临这个问题,它只是不相关的code,但对供应商有什么样的更新pushed.Try通过进行确认运行你的其他设备上的应用程序也具有不同的棒棒糖版本。
只有一个项目创建一个mainmenu.xml文件(R.id.action_settings)
并尝试你的code内膨胀,并能见度事后设置为false。
这将可能会解决这个问题,否则进入手机设置和按钮,然后试图找出是否有任何选项来帮助你。它应该与导航什么的我想。

Lot of people are facing this problem and its just not related to your code but to what kind of updates vendors have pushed.Try to confirm it by running your app on other devices too with different lollypop version. Create a mainmenu.xml file with just one item (R.id.action_settings) and try to inflate it within your code and set the visibility to false afterwards. That will might solve the issue otherwise go into phone settings and button and then try to find out if there is any option to help you. It should be related to navigation or something i suppose.

修改

设置您的SDK版本14或以上似乎解决了问题。我们经历过很多打击和审判了,这一次似乎工作。我相信它在设计库一种错误的。

Setting your sdk version 14 or above seems to solve the issue. We went through many hit and trial and this one seems to work. I believe its a sort of bug in the design library.

这篇关于隐藏FloatingMenu造成Theme.AppCompat.Light.NoActionBar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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