2011-06-17 79 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的所有地方被推離頁面的其他意見的背景。

因此我改變了他們和現在工作的罰款