Android背景无法正确显示

时间:2012-02-12 19:43:45

标签: android eclipse background

好的,我在Inkscape中创建了一个背景图片。当我从Eclipse打开它时,导出该图像并且它看起来是正确的。但是,当我构建项目并将该背景应用于布局时,它会在设计器和设备上显示完全相反的内容。

这是图像应该是什么样子。 Correct background

以下是Eclipse Designer中的图像。Incorrect background.

这是我在全新Xml文件上的Xml。

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/list_view_bg"
android:orientation="vertical" >
</LinearLayout>

我对这一点感到非常困惑。非常感谢任何帮助。

1 个答案:

答案 0 :(得分:1)

你最有可能使用黑暗背景的主题。由于背景渐变是透明的,因此会显示黑色背景。

切换到灯光主题。

相关问题