1
我正在嘗試一個非常簡單的應用程序,它顯示兩個文本字段和一個按鈕(背景顏色已更改)。一個簡單的文本出現在模擬器上,但沒有出現在設備上
這在Emulator上顯得很好,但是當我在實際設備上嘗試相同時,一個文本字段不顯示,並且按鈕顏色更改爲標準顏色。
任何快速幫助?
問候, 古爾
XML
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall"
android:text="@string/enter_phone_number"
android:id="@+id/EnterNumberMsg"
android:clickable="false"
android:visibility="visible"
android:textStyle="bold"
android:textSize="15sp"
android:textIsSelectable="false"
android:textColor="#c816365c"
android:textAlignment="center"
android:password="false"
android:background="#fa538dd5"
android:layout_centerHorizontal="true"
android:layout_below="@+id/LogoMsg"
android:layout_marginTop="100dp" />
檢查您的textColor和背景顏色可能相同。爲了更好地理解發布你的xml – Kunu
嘗試在你的手機上重新安裝應用程序,你可能會運行它的舊版本。 – Kelo
沒有背景顏色是不一樣的.. :) –