在我的應用程序中,我有一個帶有提示的EditText,在執行時我可以看到提示。但是在輸入時我看不到我鍵入的文本。我將顏色參數設置爲android:textColor="#000000"
在編輯文本中,但無法查看我輸入爲黑色的文本。利用主題Android:編輯文本顏色不設置爲黑色
<EditText
android:id="@+id/edt_searchContact"
android:layout_width="match_parent"
android:layout_height="45dp"
android:layout_marginLeft="5dp"
android:layout_centerVertical="true"
android:ems="10"
android:textColor="#000000"
android:focusable="true"
android:clickable="true"
android:inputType="text"
android:hint="Search..."/>
<requestFocus/>
上午
<style name="Theme.NoTitleBar">
<item name="windowNoTitle">true</item>
</style>
任何一個可以幫我的問題。 感謝提前:)
你是什麼意思*好結果* – Mohit
你可以發佈你的'EditText'圖像嗎? –
我的意思是文字顏色不變爲黑色,它仍然是灰色 –