Android的警告对话框无法正常风格的棒棒糖 [英] Android alert dialog not styled properly on Lollipop

查看:1674
本文介绍了Android的警告对话框无法正常风格的棒棒糖的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经想尽一切办法得到这个工作,不能看着办吧。

I have tried everything to get this working and cannot figure it out.

我想用一个警告对话框IM我的应用程序。它工作正常,在奇巧,但不是棒棒糖。

I am trying to use an alert dialog im my app. It works fine on KitKat but not on Lollipop.

我甚至尝试使用在GitHub上许多材料对话框他们再次在奇巧,但不能在棒棒堂工作。

I have even tried using many material dialogs on GitHub and again they work on Kitkat but not on Lollipop.

我测试在我的Nexus 5与股市关系的工厂形象。

I am testing on my Nexus 5 with stock nexus factory image.

奇巧与GitHub的材料对话框

输入图像的描述在这里

奇巧与库存警报对话框

输入图像的描述在这里

LOLLIPOP与GitHub的材料对话框

输入图像的描述在这里

Lollipop备有库存警报对话框

输入图像的描述在这里

另外这是在安装它不工作在同一台设备上的GitHub库。因此,它的一些有关我的应用程序,是造成这一点。可能是什么

Also this is the library on github installed on the same device its not working on. So its something about my app that is causing this. what could it be

输入图像的描述在这里

推荐答案

机器人:fitsSystemWindows =真是罪魁祸首

android:fitsSystemWindows="true" was the culprit.

我有我的styles.xml声明。

I had that declared in my styles.xml.

从styles.xml删除,并放置在我的布局,现在它的工作。

Removed it from styles.xml and placed in my layout and it working now.

这篇关于Android的警告对话框无法正常风格的棒棒糖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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