2011-06-17 76 views
0

我有一个相当标准的布局为我的应用程序安装向导的第一个屏幕。我一直在用主题中定义的纯色背景进行开发。我最近得到了我想用作背景的PNG文件。除了安装向导的3个屏幕之外,此功能在所有屏幕上均正常工作。问题是只绘制了第一个textview。我使用了层级查看器和其他未列出的视图。消失意见

这些是使用包含语句,因此我怀疑这可能是问题的根源,但即使我拿出包括声明我仍然有问题的唯一屏幕。

<?xml version="1.0" encoding="utf-8"?> 
<RelativeLayout 
    xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent"> 

    <TextView 
     android:id="@+id/welcome" 
     android:text="@string/welcome" 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     android:padding="10dip" 
     android:gravity="center_horizontal" 
     android:textColor="#433A33" 
     android:textStyle="bold"> 
    </TextView> 
    <ImageView 
     android:id="@+id/mainIcon" 
     android:src="@drawable/main_icon" 
     android:layout_width="100dip" 
     android:layout_height="100dip" 
     android:layout_centerHorizontal="true" 
     android:layout_below="@+id/welcome"> 
    </ImageView> 
    <TextView 
     android:id="@+id/description" 
     android:text="@string/description" 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     android:padding="10dip" 
     android:layout_below="@+id/mainIcon" 
     android:gravity="center_horizontal" 
     android:textColor="#433A33" 
     android:textSize="15dip"> 
    </TextView> 
    <TextView 
     android:id="@+id/choice" 
     android:layout_below="@id/description" 
     android:text="@string/choice" 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     android:padding="10dip" 
     android:gravity="center_horizontal" 
     android:textColor="#433A33" 
     android:textSize="15dip"> 
    </TextView> 
    <Spinner 
     android:id="@+id/language" 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     android:layout_below="@id/choice" 
     android:prompt="@string/languagePrompt" 
     android:textSize="10dip" 
     android:layout_marginRight="20dip" 
     android:layout_marginLeft="20dip"> 
    </Spinner> 

    <include layout="@layout/wizard_bottom" android:layout_width="wrap_content" android:layout_height="wrap_content"/> 
</RelativeLayout> 

让我知道如果任何人有任何想法。

编辑,以显示与屏幕的问题出手

enter image description here

+0

嗨Jiduvah你能不能请您ellaborate关于backbround问题。我无法理解问题 – 2011-06-17 09:30:18

+0

@Deepak有一个屏幕截图,以突出显示问题 – jiduvah 2011-06-17 09:37:13

+0

在屏幕截图中出现了什么问题,我想知道。背景图像是否未设置或其他? – 2011-06-17 09:43:57

回答

0

的问题是,我用的是主题是设置背景各方意见,而不仅仅是窗口背景。所以这是在截屏的背景是一个ImageView的所有地方被推离页面的其他意见的背景。

因此我改变了他们和现在工作的罚款