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:

  1. remove android:gravity declaration , have text left-aligned.
  2. keep declaration , remove android:singleline. in case, have override editor action in order default next or done button on soft keypad.
  3. remove android:gravity, , set layout_width="wrap_content". appropriately center entire widget in parent layout. may little goofy standard edittext background grow , shrink. may have set null , make background part of parent container.

also, don't forget star bug :)

cheers.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -