Wednesday, April 23, 2014

Android development, how to display in EditText message and click automatically cleared after


Android development, how to display the prompt message box, and then click to clear automatically, rather than enter the characters later cleared
. Great God seeking help, thank you.
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Set hint property
Reply:
How to set ah, hint is set before me, but only after the input prompt character will disappear
Reply:
cited a floor nkuJerry reply:
set hint attribute
how to set ah, I set before you is a hint, but only in Enter the characters prompt will disappear after
Reply:
Ah, um, you can get the listener through focus
Reply:
The landlord also can do together to improve the self-oh
Reply:
references, 4th Floor DrSmart reply:
ah, um, you can get the listener through focus


Just did not finish, View.OnFocusChangeListener through this, you can control the content EditText
Reply:
reference to the third floor u010376543 reply:
Quote: references to a floor nkuJerry reply:

Set hint attribute
how to set ah, hint is set before me, but only after the input prompt character will disappear


Do you mean to remove the content immediately after obtaining the focus really can add OnFocusChangeListener message response to achieve but may impact on future input, because each character gets the focus will be empty inside ... (of course, judging by some of the to control, just seems a little complicated, you can try)
Reply:
Look at your needs, set onClickListener meet, after clicking on the line blank hint
Reply:
I feel you in accordance with setText ("");
Reply:
I have encountered this problem, did you solve?
Reply:
Hint up this property disappears when the cursor is, you want to suggest, or add it TextView before EditTEXT

No comments:

Post a Comment