Monday, 15 February 2010

android - EditText is not showing hint, cursor and typed text -


Hello, I have more than one editing text, each of which has hint text. I am loading EditText view in one piece. Whenever the piece is loaded, the cursor blinks for a fraction of the very left side of the text, but disappears after that even the signal is not visible and I do not see the type of text. However, when I double click in the edit text, then the entered text is selected and the text is now visible I can not find this issue.

Here is my XML for EditText:

  & lt; TableRow Android: id = "@ + id / patientName_tableRow" Android: layout_width = "wrap_content" android: layout_height = "wrap_content" & gt; & Lt; Android: text_view = "wrap_content" android: layout_width = "wrap_content" android: layout_height = "wrap_content" android: text = "@ string / patient_name" android: textcolor = "@ android: color / holo_blue_bright" Android: Text Syss = "20sp" /> & Lt; Android: background = "@ android: color / darker_gray" Android: id = "@ + id / editText_last_name" android: layout_width = "100dp" Android: layout_height = "wrap_content" android: layout_marginLeft = "10dp" Android: signal = " Last name "Android: inputType =" text "Android: paddingLeft =" 1dp "Android: paddingRight =" 1dp "/> & Lt; Requestfocus / & gt; & Lt; Android: layout = "id = First name "Android: inputType =" text "Android: paddingLeft =" 1dp "Android: paddingRight =" 1dp "/> & Lt; Requestfocus / & gt; & Lt; / TableRow & gt;  

Please guide me.

thanks

EditText's own XML

Android Add this to: textcolor = "# f00"

and change for whatever color is appropriate


No comments:

Post a Comment