android - Hint Not Displaying When numeric="integer" in EditText -
the title question.
anybody know solution?
please me.
shaiful
the xml attribute android:numeric not boolean value , "true" not valid parameter, must 1 ore more of "integer", "signed", "decimal".
per sample you've posted, issue due choice of adding gravity center text. there known bug in sdk that, of 2.3, looks still not fixed. bug hides hint text when android:singleline
, custom value of android:gravity
set together. choice @ juncture remove 1 or other. workaround options:
- remove
android:gravity
declaration , have text left-aligned. - keep declaration , remove android:singleline. in case, have override editor action in order default next or done button on soft keypad.
- remove
android:gravity
, , setlayout_width="wrap_content"
. appropriately center entire widget in parent layout. may little goofy standardedittext
background grow , shrink. may have set null , make background part of parent container.
also, don't forget star bug :)
cheers.
Comments
Post a Comment