2013-03-09 105 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