2013-03-09 108 views
1

你好我有一個xml文件「註冊表單」,但是當我運行它時,我無法看到文本視圖中的所有文本.....可以一些PLZ幫助... 。我不認爲它是在代碼中,據我記得我上次做了什麼是從該XML文件的主題選項的選項textview不會出現在屏幕上

不幸的是我忘了我怎麼能有人幫我拿掉我的內存PLZ

這裏是我的xml文件

<?xml version="1.0" encoding="utf-8"?> 
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" 
xmlns:tools="http://schemas.android.com/tools" 
android:layout_width="fill_parent" 
android:layout_height="fill_parent" 
android:background="#3b3b3b" 
tools:context=".RegisterActivity" > 

<LinearLayout 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:gravity="bottom" 
    android:orientation="vertical" > 

    <!-- View Title Label --> 

    <TextView 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     android:layout_marginBottom="4dip" 
     android:text="REGISTER" 
     android:textSize="25dip" 
     android:textStyle="bold" /> 

    <!-- Name Label --> 

    <TextView 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     android:text="Full Name" /> 
    <!-- Name TextField --> 

    <EditText 
     android:id="@+id/registerName" 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" /> 

    <!-- Email Label --> 

    <TextView 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     android:text="Email" /> 
    <!-- Email TextField --> 

    <EditText 
     android:id="@+id/registerEmail" 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" /> 

    <!-- Password Label --> 

    <TextView 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     android:layout_marginTop="15dip" 
     android:text="Password" /> 
    <!-- Password TextField --> 

    <EditText 
     android:id="@+id/registerPassword" 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     android:password="true" /> 

    <!-- Error message --> 

    <TextView 
     android:id="@+id/register_error" 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     android:padding="10dip" 
     android:textColor="#e30000" 
     android:textStyle="bold" /> 

    <!-- Login Button --> 

    <Button 
     android:id="@+id/btnRegister" 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     android:layout_marginTop="20dip" 
     android:text="Register" /> 

    <!-- Link to Login Screen --> 

    <Button 
     android:id="@+id/btnLinkToLoginScreen" 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     android:layout_gravity="bottom" 
     android:layout_marginTop="40dip" 
     android:background="@null" 
     android:text="Already registred. Login Me!" 
     android:textColor="#21dbd4" 
     android:textStyle="bold" /> 
    </LinearLayout> 

    </ScrollView> 
+0

它是否適合你..? – 2013-03-09 11:31:23

+0

將主題設置爲holo.light或holo.black – 2013-03-09 11:31:33

+0

應用程序主題........ – 2013-03-09 11:33:59

回答

1

改變你的TextView比black..if你其他顏色使用xml然後設置textColor屬性說#FFFFFF.

+0

,正如我所說的,與我的代碼沒有任何關係,就像我上次做的一樣,但我確實不是爲什麼它改變了! – user1794499 2013-03-09 11:51:37

+0

???? ...你能解釋清楚嗎 – 2013-03-09 11:53:42

+0

我的意思是這是與主題,而不是代碼 – user1794499 2013-03-09 11:58:11