textview中的文本在实际设备中似乎是白色但在模拟器中是可以的

时间:2014-06-30 06:31:21

标签: android-emulator textview android-2.2-froyo android

垂直布局中的属性是

    <LinearLayout
        android:id="@+id/buscador"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginLeft="5dp"
        android:layout_marginRight="5dp"
        android:layout_marginTop="10dp"
        android:focusable="false"
        android:focusableInTouchMode="false"
        android:orientation="horizontal" >

        <AutoCompleteTextView
            android:id="@+id/autoCompleteTextView1"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:ems="10"
            android:hint="@string/searchcity"/>

        <Button
            android:id="@+id/button1"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_weight="2"
            android:text="@string/climaB" />

    </LinearLayout>

在适用于Android 3.0的Eclipse模拟器中,提交的文本完美可见,但在我的Android Froyo平板电脑中,它不是&:;(。应用程序有最小的SDK = 8.有人有同样的问题吗?可能会发生什么?我也尝试使用纯文本TextView,但在这种情况下,模拟器和设备都没有问题。抱歉,在模拟器中运行应用程序时,忘记提及textview中的文本为白色在深色(黑色)中可见。

2 个答案:

答案 0 :(得分:1)

对于Tablet和一些Android版本默认Text Color是白色的,这就是为什么你得到白色文字颜色,添加android:textColor属性

答案 1 :(得分:0)

检查您是否开启了深色模式。如果是,请禁用它后重试。