Android,背景drawable在genymotion中显示为黑色但在intellij中看起来很好

时间:2015-08-04 09:25:35

标签: android intellij-idea genymotion

我正在尝试为我的活动设置背景图片,如下所示:

<LinearLayout
            android:id="@+id/container"
            xmlns:android="http://schemas.android.com/apk/res/android"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:gravity="center"
            android:background="@drawable/login_background"
            android:orientation="vertical">

在intellij的预览中看起来很棒

enter image description here

但在genymotion中它看起来很黑:

enter image description here

在尝试更改文件名,文件大小和从photoshop尝试各种导出方法后,我很无能为力。

有什么想法吗?

2 个答案:

答案 0 :(得分:1)

你有没有尝试过另一个genymotion配置? 或者你在真正的设备上试过它?

我建议先使用其他配置,根据这篇文章,它可以提供帮助。

https://github.com/facebook/fresco/issues/298

PS:我知道不是一个真正的答案,还没有足够的声誉,但我认为无论如何都可以提供帮助。

答案 1 :(得分:0)

在玩完这个问题后,我真的不知道是什么问题。在不同的活动中尝试相同的图像后,即使没有修改genymotion设置,它也开始显示。