图形化的错误而改变片段,API 21 [英] Graphical bug while changing fragment with API 21

查看:122
本文介绍了图形化的错误而改变片段,API 21的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个图形化的问题与我的关系5。 虽然我改变片段,新的片段出现之前,有这样的新片段的部分大广场。 过渡并不顺利。

I have a graphical problem with my nexus 5. While I changing fragment, before new fragment appears, there is this big square with a portion of the new fragment. The transition isn't smooth.

我用getSupportFragmentManager()的片段。 随着模拟器(API 21)和其它设备(API< 21)是一切OK,我的设备(API 21)我有这个问题。 一些想法?

I use getSupportFragmentManager() for fragment. With the emulator(API 21) and other devices(API < 21) is all ok, with my device(API 21) i have this problem. Some ideas?

编辑:只有当(每次)一个片段是替换,它被添加并不时出现此错误

This error occurs only when (and every time) a fragment is replace, not when it is added.

推荐答案

解决!

我已经找到了解决方案。 我给自己定根系活力(也如果在我的情况下,从来没有表现出像)和图形毛刺消失的背景颜色。

I've found the solution. I've set the background color of root activity(also if it is never shown like in my case) and the graphical glitch is gone.

这篇关于图形化的错误而改变片段,API 21的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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