简体   繁体   English

触摸视图时屏幕变黑? 我应该怎么做才能解决这个问题?

[英]Screen turns black on touching a view? what should i do to fix this?

Everytime,I touch on a view or menu item, navigation item or anything on the screen, the screen turns black for a second(or less) and then opens another activity or Fragment. 每当我触摸视图或菜单项,导航项或屏幕上的任何内容时,屏幕都会变黑一秒钟(或更短的时间),然后打开另一个活动或片段。 I have seen similar type of question(that is regarding scrolling a list), Does "cacheColorHint" attribute works here? 我已经看到过类似类型的问题(与滚动列表有关),“ cacheColorHint”属性在这里有用吗?

try adding this to your theme: 尝试将其添加到您的主题中:

<item name="android:windowDisablePreview">true</item>

or , Try this in Manifest.. inside your activity 或,在清单中尝试此操作。

android:theme="@android:style/Theme.Translucent"

Or 要么

android:theme="@android:style/Theme.Light"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM