Questions tagged [hint]

361 questions
24
votes
4 answers

Why does Mongo hint make a query run up to 10 times faster?

If I run a mongo query from the shell with explain(), get the name of the index used and then run the same query again, but with hint() specifying the same index to be used - "millis" field from explain plan is decreased significantly for…
Eugene Platonov
  • 3,145
  • 3
  • 26
  • 20
17
votes
6 answers

Hint in Search Widget within Action Bar is not showing up

I have a Search Widget within an Action Bar. I have set up an android:hint value however It is not showing up when I click on the Search Icon. Relevant Files : MainActivity.java package com.example.myApp; import android.os.Bundle; import…
Rohan
  • 1,312
  • 3
  • 17
  • 43
16
votes
2 answers

Android accessibility in edit text with hint

I have edittext for entering first name when creating account and its hint is "Jane"(as first name). I also want to have content description on this edittext for accessibility saying "first name". When I set both hint and content description warning…
Damir
  • 1,092
  • 4
  • 18
  • 32
15
votes
1 answer

How can I add a hint to the Spinner widget?

I have a Spinner in spinnerMode="dropdown" mode. Instead of the preselected first item, I want to show the user a hint, so that there is no default selection (like »Please select an item«) This is the UI I got: and this is the UI I want to…
Jens Kohl
  • 5,899
  • 11
  • 48
  • 77
13
votes
3 answers

How to get Textinputlayout hint android in multiple lines?

I have tried many options available online but none of them seem to be working. I have used this XML for this purpose.
Vaibhav Jaiswal
  • 131
  • 1
  • 4
13
votes
5 answers

Set multi-line for EditText's HINT

I know that I could change the No. of lines for EditeText's Text, yet could I change that of EditText's hint as well? I could not find a solution online. Thanks for the help. My Code: @Override public void onCreateOptionsMenu(Menu menu, MenuInflater…
Derekyy
  • 1,018
  • 4
  • 18
  • 31
13
votes
2 answers

Can someone explain size hint, size policy, size constraint in QT?

Can anyone give a clear explain of these 3 concept? What's the difference and how to use them?
Alston
  • 1,166
  • 2
  • 13
  • 26
12
votes
1 answer

How can I enable a Node.js Intellisense in VS Code?

How can I enable a Node.js Intellisense in VS Code? For instance, I am aware of a constant in Node.js __dirname, but when I try to type __dir in VS Code I am not getting any suggestions, while I would expect to see the __dirname as a…
qqqqqqq
  • 1,831
  • 1
  • 18
  • 48
12
votes
2 answers

SQL Server - How to Hint an Index on an Update command?

I'm trying to execute the following command to force an update to use a non-clustered index: UPDATE Flights SET Airtime=5555678 WHERE Distance=10000 OPTION (TABLE HINT(Flights, INDEX (DistanceIndex))) ... and it's erroring: Msg 8724, Level…
Jon295087
  • 731
  • 1
  • 8
  • 28
11
votes
1 answer

Wrong hint showing on TListView with OwnerData and OwnerDraw set to True

I use Delphi 2007. I have a TListView with OwnerData and OwnerDraw set to True. ViewStyle is set to vsReport. I have a record. type TAList=record Item:Integer; SubItem1:String; SubItem2:String; end; var ModuleData: array of…
Pascal Bergeron
  • 761
  • 3
  • 12
  • 27
10
votes
2 answers

Flutter: Cupertino TextField with hintText

I'd like to add hint text to CupertinoTextField without importing the material theme. Up to this point I tried mixing CupertinoTextField with InputDecoration like so: CupertinoTextField( decoration: InputDecoration.collapsed( hintText:…
10
votes
1 answer

EditText android:hint not disappearing onFocus

I am on Android 4+ and I am trying to add hints to my edit text widgets. I tried adding the hint to the layout as follows...
xpete
  • 417
  • 3
  • 14
9
votes
1 answer

PSK Hint with OpenSSL

What is exactly the role of the PSK Hint in OpenSSL ? I think it's a sort of server identification for clients but I didn't found anything concrete about it.
Guid
  • 2,137
  • 2
  • 20
  • 33
9
votes
1 answer

How to create a TButton or other controls inside a THintWindow?

I am trying to create a THintWindow and place a TButton or a TFrame on it. here is my code: TForm1 = class(TForm) Button1: TButton; Button2: TButton; procedure FormCreate(Sender: TObject); procedure Button1Click(Sender: TObject); procedure…
kobik
  • 21,001
  • 4
  • 61
  • 121
9
votes
3 answers

How to show a specific hint within Visual Studio

I'm currently working on improving my coding sensation so I've started adding some extension methods to the types I'm using. I figured out, that I'm doing the same action quite often always with the same attributes. I want to show this hint when…
cramopy
  • 3,459
  • 6
  • 28
  • 42
1
2
3
24 25