Hint Not Displaying When numeric=“integer” in EditText?

The XML attribute android:numeric is not a boolean value and "true" is not a valid parameter, it must be one ore more of "integer", "signed", "decimal.

The XML attribute android:numeric is not a boolean value and "true" is not a valid parameter, it must be one ore more of "integer", "signed", "decimal". Per the sample you've posted, your issue is due to the choice of adding gravity to center the text. There is a known bug in the SDK that, as of 2.3, it looks like is still not fixed.

This bug hides the hint text when android:singleLine and any custom value of android:gravity are set together. Your choice at this juncture really is to remove one or the other. Some workaround options: Remove the android:gravity declaration and have the text left-aligned.

Keep the declaration and remove android:singleLine. In this case, you will probably have to override the Editor Action in order to get the default Next or Done button on the soft keypad. Remove android:gravity, and set layout_width="wrap_content".

Then appropriately center the entire widget in the parent layout. This may look a little goofy with the standard EditText background as it will grow and shrink. You may have to set this to null and make the background part of a parent container.

Also, don't forget to star the bug :) Cheers.

My mistake. I actually used numeric="integer". And no hint.

:( – Shaiful Feb 10 '11 at 4:15 I reiterate. Please post some code that we can look at to assis you further. – Devunwired Feb 10 '11 at 16:23 – Shaiful Feb 13 '11 at 6:03 Answer updated with the real issue :) – Devunwired Feb 13 '11 at 12:57 Working .. thanks.My Choice is first one.

:) – Shaiful Feb 14 '11 at 10:29.

I think you should use one of the attributes specified here for the numeric attribute. Not sure if it solves the problem but you should use one of those values as it states: "Must be one or more (separated by '|') of the following constant values.

I was struggling with this issue myself and none of the posts I found here could help me out. Then when I was fiddeling with the EditText again, I found out that the hint does show when an android:inputType was assigned in combination with android:ellipsize. A later search pointed into the same direction: code.google.com/p/android/issues/detail?... Still it's a weird issue, which should already be fixed...

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions