Questions tagged [hint]
361 questions
455
votes
15 answers
PHPDoc type hinting for array of objects?
So, in PHPDoc one can specify @var above the member variable declaration to hint at its type. Then an IDE, for ex. PHPEd, will know what type of object it's working with and will be able to provide a code insight for that variable.

Artem Russakovskii
- 21,516
- 18
- 92
- 115
320
votes
34 answers
Watermark / hint / placeholder text in TextBox?
How can I put some text into a TextBox which will be removed automatically when the user types something in it?
mehdi
311
votes
13 answers
Flutter: how to make a TextField with HintText but no Underline?
This is what I'm trying to make:
In the Flutter docs for Text Fields (https://flutter.io/text-input/) it says you can remove the underline by passing null to the decoration. However, that also gets rid of the hint text.
I do not want any underline…

juan park
- 3,224
- 2
- 10
- 13
124
votes
5 answers
How do I put hint in a asp:textbox
How do I put a hint/placeholder inside a asp:TextBox? When I say a hint I mean some text which disappears when the user clicks on it. Is there a way to achieve the same using html / css?

user590849
- 11,655
- 27
- 84
- 125
102
votes
10 answers
Android EditText view Floating Hint in Material Design
Does API 21 provide a method to use the following feature:
http://www.google.com/design/spec/components/text-fields.html#text-fields-floating-labels
I'm trying to float the EditText hints.
Thanks!

xsorifc28
- 5,112
- 6
- 16
- 24
77
votes
6 answers
How to change the hint size of TextInputLayout
This is my xml

Ara Badalyan
- 1,616
- 1
- 15
- 20
62
votes
9 answers
Android EditText for password with android:hint
Just noticed that android:password has been deprecated, and we should be using android:inputType. Was experimenting with it by setting in my xml
android:inputType="textPassword"
Indeed it behaves like
android:password="true"
for EditText, but…

yjw
- 3,394
- 4
- 20
- 20
49
votes
4 answers
NetBeans / Java / New hint: Thread.sleep called in loop
In NetBeans, there's a new hint that says: Thread.sleep called in loop.
Question 1: How/when can it be a problem to sleep in a loop?
Question 2: If it's a problem, what should I do instead?
UPDATE: Question 3: Here's some code. Tell me in this case…
user356178
49
votes
9 answers
Java JTextField with input hint
I would like to add a hint value to my javax.swing.JTextField. It should look like Firefox rendering of . This creates an edit field with the text 'bla' in the background. If the textbox has focus the title-text…

Wienczny
- 3,958
- 4
- 30
- 35
48
votes
11 answers
EditText hint doesn't show
My EditText configured as follows won't show the hint:

venuko
- 481
- 1
- 4
- 3
48
votes
12 answers
how to make hint disappear when edittext is touched?
In my application in android are many EditText fields. And I ran into a problem with hint.
It is not disappearing when EditText is focused, but it disappears when I start to write something.
How can this problem be fixed? Because I need the hint to…

ToRaRo
- 611
- 1
- 5
- 7
45
votes
4 answers
How to hint the index to use in a MySQL select query?
I have a MySQL query (running MySQL 5.0.88), which I'm trying to speed up. The underlying table has multiple indices and for the query in question, the wrong index is used (i_active - 16.000 rows, vs. i_iln - 7 rows).
I'm not very experienced with…

frequent
- 27,643
- 59
- 181
- 333
40
votes
10 answers
HTML input field hint
I want to provide the user with a hint on what he needs to enter into my text field. However, when I set the value, it does not disappear once a user clicks on the text field. How can you make it disappear?

Frank Vilea
- 8,323
- 20
- 65
- 86
32
votes
7 answers
Flutter - Change search hint text of SearchDelegate
In current implementation of SearchDelegate, there is no option to change the hint text. When the query is empty, search screen is displaying "Search" in the query field as a hint text.
Hint text is currently defined on line 395 as follows:
final…

Despotovic
- 1,807
- 2
- 20
- 24
25
votes
3 answers
Android: EditText hint in single line
For setting the Single Line in EditText we use android:singleLine="true" but I want to set the single line for the Hint Text, it is large and I want to show it in a one line like:
http://google.myopenid.stackoverflow.com
I am using the following…

Sameer Z.
- 3,265
- 9
- 48
- 72